LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   jar files (https://www.linuxquestions.org/questions/programming-9/jar-files-7185/)

mlynch147 10-03-2001 03:45 AM

jar files
 
Hi
Ive just joined so hopefully some one can help me......

Ive created an application in java that connects to an Informix database..... The database doesnt sit on the linux box but on a Solaris machine

Ive jarred up the app and placed it on my linux box.... Ive also placed the Informix driver jar file i need (ifxjdbc-g.jar) on my linux box.....

its in a dir called /usr/bin

so ive edited my .bashrc file CLASSPATH variable to point to this jar... something like this

export CLASSPATH=$CLASSPATH:/usr/bin/ifxjdbc-g.jar

but when i try to run my jar file with the command
java -jar psa.jar

the database connection cant be made.... it works fine on my development enviroment so hopefully someone can help me here

Thanks in advance
Martin

Bert 10-23-2001 11:49 AM

Mmm.

Classpath variables usually show the processor (whatever architecture) where to find the JVM and applets, jars, apps. Your classpath appears to be pointing to the jar file itself.

Try this;

export CLASSPATH=$CLASSPATH:/usr/bin/.;

Sorry, I can't remember if it's colon separator or semi colon for Solaris and Unix (I assume it's colon cause it's semi colon for Windoze).

GOLDF1NG3R 10-24-2001 07:11 AM

What is the error message that you are getting?


All times are GMT -5. The time now is 12:57 PM.