Home » Developer & Programmer » JDeveloper, Java & XML » Re: Exception in thread "main" Java.lang.NoClassDefFoundError:dbas.
Re: Exception in thread "main" Java.lang.NoClassDefFoundError:dbas. [message #90882] Fri, 09 November 2001 04:22
James Hurff
Messages: 2
Registered: November 2001
Junior Member
There are several ways to specify the classpath...

You can set the environmental variable in a command shell by using the set command:

set CLASSPATH= -

this will append a directory and a jar file:

set CLASSPATH=%CLASSPATH%;c:some_new_dirlib;c:a_jar_dirsome.jar

Also, if you want a change to the CLASSPATH to be permanent (every shell), set it by right clicking "My Computer" > "Properties" > "Environment" tab > "CLASSPATH" variable. If one does not exist yest, you will have to add it.

Finally, you can specify the classpath argument in the call to java:

java -cp c:some.jar
or
java -classpath c:some.jar

More savy developers usually use shell scripts or batch files to set the classpath per their needs for launching a java application.

Hope this helps.

----------------------------------------------------------------------
Previous Topic: Re: Connecting to Oracle Database Using JDBC thin driver
Next Topic: Re: Jdeveloper (connection error)
Goto Forum:
  


Current Time: Thu Mar 28 18:29:00 CDT 2024