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'm setting up a RHEL 4 VM and have installed Oracle Java 1.6 from a bin file to /opt. I've added it into the PATH but when I try to run a installer that needs Java to run it says that it can't find a Java installation in my PATH but when I execute a which java I get the following:
Quote:
# which java
/usr/bin/which: no java in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/jre1.6.0_23/bin/java:/root/bin:$/opt/jre1.6.0_23/bin/:$)
#
I would say show us with an ls -al exactly where java is please - also I may have just never seen it but whats with the "$" in your path? All you should need (if java is in /opt/jre1.6.0_23/bin) is /opt/jre1.6.0_23/bin in your path....
# ls /opt/jre1.6.0_23/
bin javaws man README Welcome.html
COPYRIGHT lib plugin THIRDPARTYLICENSEREADME.txt
#
Don't know what you want this for, but there you go.
Also, I tried setting JAVA_HOME to /opt/jre1.6.0_23 where I instyalled it and logged off and on again but it made no difference.
# ls /opt/jre1.6.0_23/
bin javaws man README Welcome.html
COPYRIGHT lib plugin THIRDPARTYLICENSEREADME.txt
#
Don't know what you want this for, but there you go.
Also, I tried setting JAVA_HOME to /opt/jre1.6.0_23 where I instyalled it and logged off and on again but it made no difference.
What I really wanted was an ls of /opt/jre1.6.0_23/bin but thats cool - I just want to actually see the java executable in case it is a link that is not working as many times "java" is just a link to the current version - can you run /opt/jre1.6.0_23/bin/java? Is it even there? This is at least the starting point of finding the problem - I mean at this point we need to figure out if it is a problem with the way java was installed or if it is a path issue or something else entirely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.