Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-03-2001, 03:45 AM   #1
LQ Newbie
Registered: Oct 2001
Posts: 1

Rep: Reputation: 0
Post jar files

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
Old 10-23-2001, 11:49 AM   #2
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46

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).
Old 10-24-2001, 07:11 AM   #3
LQ Newbie
Registered: Jul 2001
Location: UK
Distribution: RH 7.1
Posts: 24

Rep: Reputation: 15
What is the error message that you are getting?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
jar files Knowledgements Slackware 12 07-22-2005 03:36 AM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
Jar files krazibon3 Linux - Newbie 3 08-05-2004 09:42 PM
What do i do with .jar files joeman3429 Fedora 11 07-26-2004 11:00 AM
Eclipse 3.0 and JAR files german Programming 1 02-22-2004 12:28 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration