m****f 发帖数: 32 | 1 Sun has a tutorial on its site about how to
set it with c shell. That does not help me.
I have a MySql JDBC driver. I extracted it to
/usr/j2se/mm.mysql-2.0.11/, under which I have
org/gjt/mm/mysql/Driver.class. That is to say
the whole path to the Driver.class file is
/usr/j2se/mm.mysql-2.0.11/org/gjt/mm/mysql/Driver.class.
Each time I run the MySqlTest.class file, I get
an error message, saying that the driver could
not be found.
Look here:
$ java MySqlTest
java.lang.ClassNotFoundException: | c*****t 发帖数: 1879 | 2 either ~/.bash_profile or ~/.bashrc
Type
man bash
for more information
【在 m****f 的大作中提到】 : Sun has a tutorial on its site about how to : set it with c shell. That does not help me. : I have a MySql JDBC driver. I extracted it to : /usr/j2se/mm.mysql-2.0.11/, under which I have : org/gjt/mm/mysql/Driver.class. That is to say : the whole path to the Driver.class file is : /usr/j2se/mm.mysql-2.0.11/org/gjt/mm/mysql/Driver.class. : Each time I run the MySqlTest.class file, I get : an error message, saying that the driver could : not be found.
|
|