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 |
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). |
What is the error message that you are getting?
|
All times are GMT -5. The time now is 12:57 PM. |