Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
tried to compile an example code to insert text data from text file to mysql db..but its nt working..it shows errorError: org.gjt.mm.mysql.Driver not found in gnu.gcj.runtime.SystemClassLoader{ur ls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver not found in gnu.gcj.r untime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLo ader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.70)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at InsertTextFileToMySQL.getConnection(InsertTextFileToMySQL.java:15)
at InsertTextFileToMySQL.main(InsertTextFileToMySQL.java:28)
Exception in thread "main" java.lang.NullPointerException
at InsertTextFileToMySQL.main(InsertTextFileToMySQL.java:42)
pls help....
tried to compile an example code to insert text data from text file to mysql db..but its nt working..it shows errorError: org.gjt.mm.mysql.Driver not found in gnu.gcj.runtime.SystemClassLoader{ur ls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver not found in gnu.gcj.r untime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLo ader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.70)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at InsertTextFileToMySQL.getConnection(InsertTextFileToMySQL.java:15)
at InsertTextFileToMySQL.main(InsertTextFileToMySQL.java:28)
Exception in thread "main" java.lang.NullPointerException
at InsertTextFileToMySQL.main(InsertTextFileToMySQL.java:42)
pls help....
First, spell out your words, and use a good subject. Saying "pls help", tells us nothing about the question.
And if you'd like help, you need to provide some actual details. Things like version/distro of Linux, what you're trying to compile from where, etc. All you've told us is you're trying to compile an example piece of code, that you got somewhere.
Look where you got the code, chances are it has a bit of documentation, that will give you basic troubleshooting/setup steps.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Welcome to LQ. .. .. ..
First thing to do : Get a genuine sun java.
Debian : 1) su , 2) apt-get install sun-java6-jdk
3) update-alternatives --config java
.. And then please choose the "sun version"
4) exit , 5) java -version ( to check, that it works.)
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.