LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-18-2009, 06:31 PM   #1
frznchckn
Member
 
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102

Rep: Reputation: 15
Question 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
http://java.sun.com/j2se/1.4/index.html

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.

Thanks.
 
Old 05-18-2009, 08:56 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,207

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
Quote:
Originally Posted by frznchckn View Post
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
 
Old 05-18-2009, 08:58 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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.
 
Old 05-19-2009, 12:18 PM   #4
frznchckn
Member
 
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102

Original Poster
Rep: Reputation: 15
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!
 
  


Reply

Tags
java, jre, path


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
Limewire issue... Sun Jre conflicts with gcj? Or something else... hans21 Linux - Software 6 11-27-2006 10:20 AM
LXer: Top Vulnerable Apps List Includes Sun JRE, Firefox & Skype LXer Syndicated Linux News 0 06-23-2006 01:54 AM
convert from jre-...-rpm.bin into jre-...rpm gimi_k2 Linux - Newbie 3 07-18-2005 06:34 PM
Sun Java jre 1.5.0.01 not working Rusty_L Linux - Software 7 03-04-2005 08:41 PM
Jre inescapeableus Linux - Newbie 3 04-18-2004 10:04 PM

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

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