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.
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:
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*"
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.
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 01:46 PM.|