The problem comes when I try to install java-tools-bundle-linux.sh...I need to know how to specify where the JRE is located...It gives me the following error message...
No compatible Java SE Runtime Environment (JRE) was found on this system.
The NetBeans(TM) 5.5 Preview installer requires at least JRE
version 5.0. Download and install a compatible JRE and try again or
restart the installer using the -is:javahome command line parameter to
specify the location of the JRE.
I've tried several ways of doing this, all to no avail. Can someone point me in the right direction?? Do I even have the right path (where the java and javac files are located)??
If you want the latter, just:
1. go to http://java.sun.com, downloads
2. Download whatever version you prefer (EXAMPLE: jdk-6-nb-5_5-linux.bin)
3. Copy it to your system and install it:
chmod +rx jdk-6-nb-5_5-linux.bin
<= THIS SHOULD INCLUDE ALL OF THE JRE, THE JDK, AND THE NETBEANS IDE
If you want the former, you *still* need to download a JRE (as in the instructions above) ... but you should also adjust/set the following two environment variables:
... and ...
'hope that helps .. PSM
One common "gotcha" is that Linux might have Gnu Java ("gjc") somewhere in the path. Although Gnu Java and Sun Java can co-exist on the same host ... it can also complicate things. Feel free to simply delete gjc if you're not using it.
[ December 25, 2006: Message edited by: Paul Santa Maria ]
The JRE path is /opt/SDK/jdk/jre/bin
I adjusted the PATH to include /opt/SDK/jdk/bin and /opt/SDK/jdk/jre/bin, but I couldn't find the $JAVA_HOME reference.
I tried "echo $JAVA_HOME" but got a blank line as a result.
How can I create that??
is my full path, and even though FC6 did install some other version of JAVA, I don't think it's actually running or in the path.
JAVA_HOME=whaterever it is
Then try whatever it is you were going to try. If it works you just have to do that in your profile. Also, does FC6 have Java in the package management system (YUM?)? I'd be surprised if it doesn't. If it doesn't, it definitely will soon now that Java has gone all Open Source on us