Sponsored Content
Full Discussion: Unable to load OJDBC jar
Top Forums UNIX for Dummies Questions & Answers Unable to load OJDBC jar Post 302537159 by nirmal.mukundan on Thursday 7th of July 2011 08:37:51 AM
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..
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
jpackage-utils(7)						RPM Java packaging						 jpackage-utils(7)

NAME
jpackage-utils - Utilities, macros and other files for the JPackage Project <http://www.jpackage.org/>: SYNOPSIS
build-classpath build the Java classpath in a portable manner build-jar-repository build a jar repository in a portable manner rebuild-jar-repository rebuild a jar repository in a portable manner (after a jvm change...) build-classpath-directory build the Java classpath from a directory diff-jars show jar content differences jvmjar install jvm extensions create-jar-links create custom jar links clean-binary-files remove binary files from sources check-binary-files check for presence of unexpected binary files DESCRIPTION
The JPackage Project has two primary goals: - To provide a coherent set of Java software packages for Linux, satisfying all quality requirements of other applications. - To establish an efficient and robust policy for Java software packaging and installation. We focus on free and open source software whenever possible. For convenience, we also provide non-free packages without the restricted source code. Our RPMs are generic in that they should work on any RPM based Linux distribution (Mandriva, Red Hat, SuSE, others). Other packaging format suggestions are welcome too. FILES
/use/share/java-utils/java-functions shell script functions library for Java applications /etc/java/jpackage-release string identifying the currently installed JPackage release /etc/java/java.conf system-wide Java configuration file ~/.java/java.conf user's Java configuration /etc/rpm/macros.jpackage RPM macros for Java packagers and developers SEE ALSO
Regular Manual Pages build-classpath(1) build-classpath-directory(1) build-jar-repository(1) check-binary-files(1) clean-binary-files(1) create-jar-links(1) diff-jars(1) find-jar(1) jvmjar(1) rebuild-jar-repository(1) rebuild-security-providers(1) java.conf(5) Documentation Following files are located in your standard documentation directory HEADER.JPP A standard header with license for spec files of JPackage Project clean-binary-files.txt A further documentation for check-binary-files(1), clean-binary-files(1) and create-jar-links(1) commands httpd-javadoc.conf Example JPackage javadoc configuration snippet for Apache jpackage-1.5-policy.xhtml JPackage Java infrastructure design and packaging policy jpackage-utils-policy JPackage packaging (naming) policy AUTHOR
Written by the JPackage Project REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/) jpackage-utils 1.7.5 February 2009 jpackage-utils(7)
All times are GMT -4. The time now is 08:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy