Redian新闻
>
Where and how to set CLASSPATH under Solaris 8?
avatar
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:
avatar
c*t
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。