Eclipse and Classpath
I swear I'll go crazy.
JDeveloper runs my project without any complaint.
If I do "java -cp / usr / share / java / mysql.jar :. MAIN.java" it works like a charm.
But Eclipse says "[censored] you" and ignores my classpath settings.
I go to Run> Run ... and add the mysql byte in the classpath tab, but over and over again, I keep getting "No suitable driver found".
Now I don't need to add the jar to the build path. Otherwise how to use JDBC if I am going to rebuild if I want to change the engine. I also shouldn't be doing " Class.forName()
" which I don't need in other ways to run it.
Hand in this madness?
-1
source to share