March 11, 20178 yr I'm attempting to pack the jdbc jar with my project so that I can query databases via my script, but I'm getting a ClassNotFoundException at runtime when trying to load the driver. I've already added the jdbc jar to the build path which changed nothing and I've also spent a long time googling and attempting other things, but to no avail. Some people here have most likely used jdbc in their scripts for use with muling and such, so I hope someone can help me. Thanks.
March 11, 20178 yr I believe external Jars are blocked, if you want to use SQL then consider piping to PHP scripts on a web server or something along those lines.
March 11, 20178 yr Open your exported jar with winrar or something and I guarantee that you won't find the jdbc library exported. Try exporting as a runnable jar. Or what Night said ^. Though then you would get a security error Edited March 11, 20178 yr by nosepicker
March 11, 20178 yr Author Ah, got it working with exporting it as a runnable jar, thanks @nosepicker. Really did not want to go down the php line because I despise any sort of webdev stuff. :p
March 11, 20178 yr 4 minutes ago, Omnique said: Ah, got it working with exporting it as a runnable jar, thanks @nosepicker. Really did not want to go down the php line because I despise any sort of webdev stuff. :p Glad to help. Just a guess though but I think using JDBC will require your script to use a lil more resources, where as submiting stuff to a web page might be less thirsty. Just a guess though. Depends on what you plan to do with this
March 11, 20178 yr 12 minutes ago, nosepicker said: Or what Night said ^. Though then you would get a security error What security error are you exactly speaking of?