|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
ClassNotFound ... please help
Hi, I'm trying to install jdbc driver for Mysql, but I get this error:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver .... my etc/profile is: CLASSPATH=$CLASSPATH:/usr/java/jre1.3.1_01/lib/mm.mysql.jar export CLASSPATH what shall I do?? Plesa help me! Thanks
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#2
|
|||
|
|||
|
What JSP/servlet container are you using?
The container usually won't share the same classpath as you. If you are using Tomcat, you can just throw a copy of the the .jar into $TOMCAT_HOME/lib and restart Tomcat. |
|
#3
|
||||
|
||||
|
Thanks, but ...
I'm not using a servlet container, I was experimenting with JMeter ( http://jakarta.apache.org ) and thanks to a tutorial about Postgresql ( http://www.fankhausers.com/postgresql/jdbc/welcome.html ) I've discovered that:
- NO CLASSPATH is the best way, just put the driver in /usr/java/jre/lib/ext - MySQL.com documents regarding jdbc simply SUCKS!!!! Thanks again for your help. |
|
#4
|
|||
|
|||
|
The puzzle is solved when you understand what classpath is explicit and implicit with the environment you are running on.
For general JDBC, you can't beat java.sun.com for tutorials and javaranch.com for people to pester. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > ClassNotFound ... please help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|