Where and how to set CLASSPATH under Solaris 8?# Unix - 噫吁兮,危乎高哉
m*f
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:
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: