LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-25-2009, 10:09 AM   #1
maas187
Member
 
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225

Rep: Reputation: 32
Post Java Rpath ?


Hi to all .

How to run Java command under rpath distro ?


I have openfiler and i have installed java using conary update gcc-java and sun-jdk ?, it seems to lack the command java in the command line ??


i have a java application that i need to run e.g. java -jre test.jar


thank you.
 
Old 09-26-2009, 02:16 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by maas187 View Post
Hi to all .

How to run Java command under rpath distro ?


I have openfiler and i have installed java using conary update gcc-java and sun-jdk ?, it seems to lack the command java in the command line ??


i have a java application that i need to run e.g. java -jre test.jar


thank you.
The problem is that your invocation of Java is not correct. It should be:

Code:
$ java -jar test.jar
Code:
it seems to lack the command java in the command line
"Seems"? It's either present or absent, there is no middle ground. To find out, do this:

Code:
$ java -version
If the system responds with:

Code:
bash: java: command not found
Then you haven't installed Java yet, which would explain why it is not present.

Code:
... using conary update gcc-java and sun-jdk ? ...
Oh, no, not both. One or the other -- not both. Preferably the Sun Java, which is more stable and reliable. Here is how you will know you have the "right" Java installed:

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

(or something very similar)

But if you see a reference to gcc-java instead, and unless you are interested in experimenting with a beta-level software project, install the Sun Java from http://java.com.
 
Old 09-27-2009, 05:20 AM   #3
maas187
Member
 
Registered: Aug 2008
Location: Yemen
Distribution: Fedora, CentOS, RedHat , OpenFiler, ESXI
Posts: 225

Original Poster
Rep: Reputation: 32
Wink

Quote:
Originally Posted by lutusp View Post
The problem is that your invocation of Java is not correct. It should be:

Code:
$ java -jar test.jar
Code:
it seems to lack the command java in the command line
"Seems"? It's either present or absent, there is no middle ground. To find out, do this:

Code:
$ java -version
If the system responds with:

Code:
bash: java: command not found
Then you haven't installed Java yet, which would explain why it is not present.

Code:
... using conary update gcc-java and sun-jdk ? ...
Oh, no, not both. One or the other -- not both. Preferably the Sun Java, which is more stable and reliable. Here is how you will know you have the "right" Java installed:

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

(or something very similar)

But if you see a reference to gcc-java instead, and unless you are interested in experimenting with a beta-level software project, install the Sun Java from http://java.com.
Thank you very much for your response.

I figured it out and you are right .

i needed only one.
 
  


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
gcc option -Wl,-rpath : what does it mean? stupendus Programming 2 08-13-2007 10:21 AM
rPath remaster phantom_cyph Linux - General 3 05-19-2007 08:54 AM
LXer: Talking virtualization with rPath LXer Syndicated Linux News 0 01-15-2007 10:54 PM
LXer: RPath 1.0.4 Screenshot Walkthrough LXer Syndicated Linux News 0 11-07-2006 10:54 AM
LXer: rPath Launches rBuilder 2.0 LXer Syndicated Linux News 0 08-15-2006 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration