Dear All,
I have a java application which link to db on another computer on the local lan. The problem I have install jdk_1.6_21 without any problem. Then I have paste mysql-connector-java-5.1.14-bin.jar in /usr/java/jdk1.6.0_21/jre/lib/ext. When I compile my program has no problem when I try to run I get this error java.sql.SQLException: No driver found. I have been doing this method all this while it works suddenly this new machine have this problem. Any help please.My Os is centos 5.5.
newbie14
0
Posting Pro
Recommended Answers
Jump to Postmake sure you put a System.out.println() statement in all your catch clause which will p[rint the error encountered
Jump to PostHow are you launching the application? Make sure that the driver JAR is listed in the classpath when you launch the application and you should be good to go.
java -cp app.jar:mysql.jar your.pkg.MainClass
Also, never ever mess with your default JDK installation. If your application requires a …
Jump to PostLike already mentioned, tell me how do you exactly launch the application right now. Use the template provided in my previous post to launch your application by setting the appropriate classpath.
All 11 Replies
pbl
22
Junior Poster
newbie14
0
Posting Pro
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
newbie14
0
Posting Pro
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
newbie14
0
Posting Pro
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
newbie14
0
Posting Pro
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.