Need to find the OS JRE as well as User installed JRE on my UNIX box!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need to find the OS JRE as well as User installed JRE on my UNIX box!
# 1  
Old 12-21-2010
Need to find the OS JRE as well as User installed JRE on my UNIX box!

Hi,

I want to determine whether my java application is pointing to the OS version of Java or the User installed Java version on my Unix box.

I am aware of the "java -version" command, however I am unsure if the version returned is the OS one or the user one.

Please help.
Ali.
# 2  
Old 12-21-2010
It will be either the first one found in your $PATH or the one the user ( you?) has set in his environment...
# 3  
Old 12-21-2010
I found two versions, both as desired using the "-fullversion"

confusion here still is which one is my java application pointing to -- the USR or the OS.

/usr/j2se/bin/java
/opt/java/jdk/jdk160/bin/java

Thanks.
# 4  
Old 12-21-2010
And when you type :
Code:
which java

What do you get?
# 5  
Old 12-22-2010
"which java" gives me "/opt/java/jdk/jdk160/bin/java"

does this mean that the application points to this location or just that it searches for the path and directory containing java...

echo $PATH gives /opt/java/jdk/jdk160/bin

are there any other environment variables i need to check or which java solves my doubt?

Thanks vbe in advance and for your patience Smilie
# 6  
Old 12-22-2010
It means that you or with the account you just used will effectively execute the java found in /opt/java/jdk/jdk160/bin/
As I said some users may have defined another path...
It is usually the case when depending of software needs dont match with current default version, or developers testing last release...
on many boxes I administrate there are up to 6 versions... So by default javapath is NOT set, and so you customize according to your needs
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

JRE 1.4 Download location

Dear Expert, I'm will use the software monitoring server. but need the JRE ( Java runtime 1.4 for aix 6.1) I find at dvd aix doest exist, and find google I dont have the link location download. please share location file or Java runtime 1.4 for aix 6.1. regards, ~ruhul (1 Reply)
Discussion started by: williamen
1 Replies

2. UNIX for Advanced & Expert Users

Jre not working in Fedora

I am having trouble getting my jre to work. I have uninstalled and reinstalled it several times but that is not working. I have setup the firefox symlink. sudo ln -s /usr/java/jre1.7.0_21/lib/i386/libnpjp2.so I have tried to follow these instructions. ... (4 Replies)
Discussion started by: cokedude
4 Replies

3. UNIX for Dummies Questions & Answers

jre location PATH

How do you set the classpath for jre location....What are all the steps? (4 Replies)
Discussion started by: siddhans
4 Replies

4. SCO

How to install Apache 5.0 and JRE 1.4.0

Hello, I have a problem to run the the Web aplication Cincom Mantis XML on a SCO 6.0 with MP2. My Tomcat is 4.1.31 The Cincom support tell me tha I need the Apache Tomcat 5.5 and Java JRE 1.4.0 Can I install a linux version into SCO 6.0 system ? Thank you for your help. ... (1 Reply)
Discussion started by: hrmaldonado
1 Replies

5. AIX

JRE 1.6 for AIX

Hi, I am new to AIX and working in AIX 5.3 and I want to install the JRE1.6 in the machine.So can I can anyone tell me where I will get it and how to install it on AIX machine.. Thanks in advance for your help.. (2 Replies)
Discussion started by: smartgupta
2 Replies

6. Programming

JRE in Fedora 7

Perhaps this is the right forum for this question? Hi, I am trying to install the Java Runtime Environment in Fedora 7. However, according to articles such as this: How to Install Java in Fedora Core 6 - Java Runtime Environment - Softpedia I should have a plugin directory in the jre... (3 Replies)
Discussion started by: user23
3 Replies

7. UNIX for Dummies Questions & Answers

JRE in Fedora 7

Hi, I am trying to install the Java Runtime Environment in Fedora 7. However, according to articles such as this: How to Install Java in Fedora Core 6 - Java Runtime Environment - Softpedia I should have a plugin directory in the jre directory. I don't have that after running the... (1 Reply)
Discussion started by: user23
1 Replies

8. Shell Programming and Scripting

How to Find JRE installed in linux machine..?

Hi all, Im new to linux... Im in need to write a shell script to check wthr JRE in linux machine... Wtz de best way to find thru BASH?? Plz help me out to solve this issue... Thanks (3 Replies)
Discussion started by: XivaX
3 Replies

9. Solaris

Installing JRE 1.4 errors

I'm attempting to install the Java JRE 1.4 on SunOS 5.8 box. I installed dozens of Sun patches without error, however when I download the JRE from sunsolve, I keep getting: Do you agree to the above license terms? yes Unpacking... Checksumming... 1 The download file appears to be... (2 Replies)
Discussion started by: FredSmith
2 Replies

10. BSD

JRE on frebsd 4.11

Hello I try to install ports JRE on freebsd 4.11 So I Download manually in distfiles the j2sdk-1_4_2_06-linux-i586.bin Then I tape make install in the jre ports it tell me that: ===> Vulnerability check disabled, database not found ===> Extracting for linux-sun-jdk-1.4.2.06_1 => Checksum... (1 Reply)
Discussion started by: SoulCoder
1 Replies
Login or Register to Ask a Question