Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed jre within Red Hat Enterprise linux. its successfully installed, when I run the command
#java -version I get the following.
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
but when I start installing greenstone I get for now this error I think it have some thing with path can any body help me.
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.
I know that the jre is installed I think I have to do something with javahome. ???????
To follow this thread, I will post how I got the java 1.6 path working on my Centos 5.0 box.
This is just in case someone needs this reference.
Set the JAVA_HOME environment variable to /usr/java/jdk1.6.0_06:
Indeed, there is more than one way of doing this. I chose to do it by creating a file
under the /etc/profile.d directory with the following content:
#This file was created
#to add the environment variable $JAVA_HOME
#to this system with the location of the JDK.
#This is for the use of the JDK environment
#for all users.
I called this file tomcat_env.sh because I was installing tomcat 6.0 and it needed the java 1.6 environement, but you can call it anything you want. You need to make it executable by running the following command:
[root@linuxbox profile.d]# chmod +x tomcat_env.sh
Now check its permissions. You should get:
[root@linuxbox profile.d]# ls –l
-rwxr-xr-x 1 root root 288 May 1 13:47 tomcat_env.sh
Run the tomcat_env.sh file to se the environment variable:
[root@linuxbox profile.d]# ./tomcat_env.sh
I also was able to install 1.6 but what was the problem that my software with 1.6 was having some problem thats why I was happy with 1.5 any how thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.