NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource [message #92644] |
Fri, 05 November 2004 03:15 |
Amit
Messages: 166 Registered: February 1999
|
Senior Member |
|
|
Hi,
I have compiled a small application in JAVA using JDBC that connnect to ORACLE database.
When i run the application from command line using class file
java -cp C:j2sdk1.4.2_04libclasses12.jar; connecttodb.ConnectToDB
It works
connecttodb is the package name and ConnectToDB is the main class.
I then deployed a JAR file of my application by using command
jar cmf myManifestFile connectToDb.jar ./Connection.properties connecttodb
where Connection.properties is the Property file
connecttodb is the dir where all the classes can be found.
myManifest file contains the following:
Main-Class: connecttodb.ConnectToDB
My problem is that when i run the jar file using command
java -jar -cp C:j2sdk1.4.2_04libclasses12.jar; connectToDb.jar
i get the following error
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
running the command
javap -classpath C:oracleora92jdbclibclasses12.jar; oracle/jdbc/pool/OracleDataSource
displays the right information.
Help needed
|
|
|