Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2006, 04:29 PM   #1
Registered: Aug 2006
Posts: 44

Rep: Reputation: 15
jar path on linux


I was giving propertie file path in java class like this

public static final String APPLICATION_PROPERTY_FILE_PATH ="\\\\ +

Now issue is this I deployed this as jar file on linux like b.jar.

Now it is complaining that Unable to locate resource obviously becuase of window path.

now what path i should give for unix

my jar is in home/ras/jar/b.jar/

Old 10-19-2006, 10:10 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You can run jar files using
java -jar /home/ras/jar/b.jar
To include the jar file in another application, you should include it as a library (ie in lib directory).

In any case, I would change the hardcoded Windows alike path.

Are you using Eclipse as development environment?

Edit: I'm no Java programmer, so I could be mistaken.


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
how do i execute a jar (java application) in linux amolgupta Linux - Software 2 07-20-2006 05:55 AM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
How to get swt.jar file for Linux PerfectReign Programming 6 09-26-2005 02:47 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
how to sign a jar file on Linux moe2266 Linux - Newbie 1 01-23-2004 03:10 PM

All times are GMT -5. The time now is 09:34 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