Unable to load OJDBC jar


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unable to load OJDBC jar
# 1  
Old 07-07-2011
Unable to load OJDBC jar

Hi

I was trying to execute a java file from Unix. I am using a JDBC connection in this program.

Code:
XXXXX/test/nirmal/Java > ls -lrt
 
drwxrwxrwx   3 ideasm10 ide            3 Jul  7 11:01 classes
drwxrwxrwx   3 ideasm10 ide            3 Jul  7 11:01 src
drwxrwxrwx   2 ideasm10 ide            3 Jul  7 11:47 lib
-rw-r--r--   1 ideasm10 ide           71 Jul  7 13:01 sysout.log

From here I give the when I give the command

Code:
java -cp classes com/test/jdbc/InvalidNumberTest

I am getting java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver.

Then I placed the ojdbc14.jar in the lib abd then executed the command

Code:
java -cp classes;lib/ojdbc14.jar com/test/jdbc/InvalidNumberTest

Now I am getting the exception

Code:
Failed to load Main-Class manifest attribute from
lib/ojdbc14.jar.

Can some one please help me to execute the java file.

The same program can be executed from Windows using the same commnds.

Also can you please provide a .sh file wher I can set the classpaths and also execute the java program.

Thanks
Nirmal

Last edited by pludi; 07-07-2011 at 09:49 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Permission ERROR: Unable to load the User's Hive

Hi all, Please help me solving the error that i get when i trigger the job from autosys. The job is failing after going to restart start and it is throwing an "exit code:128". Please help me understand whats this exit code and how to overcome this. And when i check the logs its giving me an... (4 Replies)
Discussion started by: Bharath V
4 Replies

2. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

3. Solaris

Java Webstart Error:Unable to load resource

I have a .jnlp file start.jnlp. It first display a login screen and after login does something I am getting the below error after login Error:unable to load resource url.com: Search with Many Find the attached error snapshot of the webstart application. I am trying this activity by... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

4. Solaris

unable to load console info in SUNMC 4.0

Hi all, unable to load console info in SUNMC 4.0 in alarm it is giving error info i.e..Agent on host (.....),1161 port not responding. Iam using M9000 server solaris 10 plz try to solve the problem Regards spandhan (0 Replies)
Discussion started by: spandhan
0 Replies

5. Infrastructure Monitoring

unable to load console info in SUNMC 4.0

hi all, unable to load console info in SUNMC 4.0 in alarm it is giving error info i.e..Agent on host (.....),1161 port not responding. plz try to solve the problem Regards spandhan (5 Replies)
Discussion started by: spandhan
5 Replies

6. Solaris

Unable to load module

Hey guys i got this error in my messages: warning : mod_load: cannot load module sbd - I dont know anything about this. - How do i verify if there is a module sbd - What are the reasons modules cant be loaded (1 Reply)
Discussion started by: sbn
1 Replies

7. UNIX for Advanced & Expert Users

Unable to load interbase.so

Hi I'm trying to add interbase.so to php.ini but i can't, the error says Unable to load ../../.../extensions/interbase.so - libgds.so on ... no such file or directory on line 0 But all the files are created correctly on their folders Any idea? (1 Reply)
Discussion started by: ncatdesigner
1 Replies

8. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

9. UNIX for Advanced & Expert Users

Strange "Unable to load interpreter" message!

Hi all, I run RedHat. Not a long ago it has started to give me message on the screen "Unable to load an interpreter". Just plain message. I checked log files. I havent found anything strange in there. Any suggestions what it might mean and how to get rid of it? Thank you all. (6 Replies)
Discussion started by: solvman
6 Replies
Login or Register to Ask a Question