-   Linux - Software (
-   -   Sun JRE versus GNU JRE (

frznchckn 05-18-2009 06:31 PM

Sun JRE versus GNU JRE
I have some institutional sw that requires Sun JRE and is throwing the following error during install:

blah blah agent has been designed for the Java Runtime Environment
provided by Sun Microsystems. It can be downloaded at no charge from

Your machine is currently using GNU Java Runtime Environment.
Please modify the system environment to use Sun JRE.

If you have already downloaded the Sun Java make sure that it appears
*before* GNU Java in the PATH environment variable.

I dl'ed and installed jre-6u13-linux-x64.bin, but how do I make sure it's first in the PATH? Because I still am unable to install the sw.


jailbait 05-18-2009 08:56 PM


Originally Posted by frznchckn (Post 3545179)
how do I make sure it's first in the PATH?

Find out what you PATH variable contains with:

echo $PATH

Then set your new PATH with whichever directory containing jre-6u13-linux-x64.bin as the first directory in your PATH. For example if jre-6u13-linux-x64.bin is in a directory called abc.progs then:

export PATH=abc.progs:$PATH

If you don't know where jre-6u13-linux-x64.bin is then you can find it with:

find / -iname "*jre-6u13-linux-x64.bin*"

Steve Stites

jay73 05-18-2009 08:58 PM

Why make things difficult?
sudo aptitude install sun-java6-jdk sun-java6-plugin galternatives
If the sun jdk is not the default after this, use galternatives (Applications > System Tools > Alternatives Configurator) to change the values of java, javac, etc.

frznchckn 05-19-2009 12:18 PM

thanks guys for the response.

This was on RH so I didn't have aptitude.

The problem was that /usr/bin/java was a symlink to GNU JRE. Once I installed Sun's JRE, I just had to update the symlink to the proper binary. A coworker helped me figure this out.

thanks again though!

All times are GMT -5. The time now is 10:51 AM.