I'm new to Java. I have a software as a " .bin " file which needs JRE
to run. I have a Fedora 9 systems and Java installed. I have
separately Installed JRE 1.6.0 and JDK too. Further I have installed
NetBeans on my Fedora system.
I set the environment variable (paths) in .bash_profile for root as
PATH=$PATH:/usr/java/jre1.6.0_12/bin
and
export JRE_HOME=/usr/java/jre1.6.0_12/bin/java
the echo $JRE_HOME gives me
/usr/java/jre1.6.0_12
but when I tried to install the .bin file it gives me following error
# chmod +x software_file.bin
# /.software_file.bin
This application requires a Java Run Time Environment (JRE)
to run. Searching for one on your computer was not
successful.
Please use the command line switch -is:javahome to specify
a valid JRE. For more help use the option -is:help.
when i execute the command to run the .bin file it shows..
Initializing InstallShield wizard......
Verifying JVM.....
and then gives the above message...
I couldn't figure out where I went wrong. Please anyone can help me I
would appreciate very much..
thanks
So you export JRE_HOME as one thing, but echo says it's something else?
Typically you would set JAVA_HOME (even for JRE) to be the directory
that contains the bin subdir, then add $JAVA_HOME/bin to the path.
hi,
this command gives me following information
#java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)
for your question,
no
it gave me
same as the one that I have entered on bash_profile..
then i did what you suggested here also..
that is,
I set the JAVA_HOME for jdk1.6.0_12
and then when i perform the above java -version it gave me tht info.
anyway the application still giving me the same message as before as
it couldn't find a valid jre.
I have done following steps also.. (from
http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/)
locate javac | grep bin
/usr/bin/javac
/usr/java/jdk1.6.0_12/bin/javac
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/bin/javac
/usr/share/doc/xerces-j2-2.7.1/tools/bin/xjavac.jar
then...
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_12/bin/
java 100
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_12/bin/jar
100
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_12/bin/
javac 100
then
/usr/sbin/alternatives --config java
and i gave the option for jdk1.6.0_12
and same for below
/usr/sbin/alternatives --config jar
/usr/sbin/alternatives --config javac
but still it giving me the same message
please help me...
Just set:
JAVA_HOME=/usr/java/jre1.6.0_12