LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Post 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
 
Old 10-23-2001, 11:49 AM   #2
Bert
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
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).
 
Old 10-24-2001, 07:11 AM   #3
GOLDF1NG3R
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?
 
  


Reply


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


All times are GMT -5. The time now is 03:30 PM.

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