LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-26-2010, 06:28 AM   #1
jaleesa
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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....
 
Old 03-26-2010, 09:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by jaleesa View Post
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.
 
Old 03-26-2010, 11:08 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.)
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't play .pls files in Rhythmbox, closes when I try to load .pls file lqv Linux - Software 2 01-07-2013 08:30 AM
pls u pls help me to install asterisk on a server in italy abdul rashid Linux - Newbie 2 02-17-2010 03:32 PM
RHEL 3 with Windows XP - Help please pls pls ar_m_in Red Hat 7 10-01-2006 09:42 AM
Help pls! PEACEYALL Linux - Newbie 3 01-10-2005 03:05 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration