Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set Classpath

Status
Not open for further replies.

kporeddy

IS-IT--Management
Sep 7, 2001
49
0
0
US
Hi, I am trying to test JDBC using java on AIX. When I run the script. I am getting following error
$ java jdbctest
Exception in thread "main" java.lang.NoClassDefFoundError: jdbctest

I set the classespath as
CLASSPATH=/usr/oracle/jdbc/lib/classes12.zip:/ford/thishost/unix/cen/WebSphere/AppServer/java/jre/lib/i18n.jar:/ford/thishost/unix/cen/WebSphere/AppServer/java/jre/lib/rt.jar:/ford/thishost/unix/cen/WebSphere/AppServer/java/jre/lib/sunrsasign.jar


$ java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX build ca131w-20021107 ORB130 (JIT enabled: jitc))

Please help on this problem.

Thanks


 
You've got the verbose option between -cp and your classpath. The classpath must come after -cp. Try just either getting rid of the verbose option or moving it before -cp.
 
Thanks it works fine . Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top