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.
But I don't think that I have the required directory on my system. I have already tried adjusting the path statement after reading posts at the LimeWire website. These posts gave me the same advice that you are proposing.
However when I try to change to the required directory I get the following:
[root@localhost java]# cd /usr/java/j2rel.4.2_01/bin
bash: cd: /usr/java/j2rel.4.2_01/bin: No such file or directory
[root@localhost java]#
Does this mean that I don't have Java on my computer? When I downloaded and installed the latest version from Sun's website there did not appear to be any problems.
I am using the latest version of Red Hat 9 (updated via downloads on the internet).
Thanks again Looking_Lost.
If you have any other ideas I would be glad to try them.
I ended up using the path /usr/local/java/, and it detected one of my JRE's I installed, I think.... I had 1.4.1.3 and 1.4.1.5 on my box at one time(before my reformatting), but I eventually got it to work with Sun's JRESDK. Then again, I am also on Slackware, which is different from RedHat....
Not that there's anything wrong with either of them, but that they don't operate identically.
Clicking on java file alone isn't the way it's supposed to be used
if you go to a terminal and cd to that directory and then type in
./java
You should get output like this
Code:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and so on
It should really be used to invoke a program
i.e
java my_java_program
All I can suggest now is in /etc/profile to add
PATH=/usr/java/j2sdk1.4.2_01/bin:$PATH
JAVA_HOME=/usr/java/j2sdk1.4.2_01
export JAVA_HOME
logout and back in again
Last edited by Looking_Lost; 09-27-2003 at 11:05 AM.
Thanks a million. I now have LimeWire up and running thanks to you. At the LimeWire forum there are very detailed instructions for the installation of java. I followed these instructions precisely and they contained advice very similar to yours but what you pointed out to me that they didn't was that I should log out after adding path information to /etc/profile and then log back in.
Again, many thanks.
And thank you r_jensen11. I appreciate anyone who takes the time to read and respond to the posts of us newbies. Many 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.