LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-24-2003, 07:45 PM   #1
bdika
Member
 
Registered: Aug 2003
Location: London, Canada
Distribution: Arch Linux
Posts: 60

Rep: Reputation: 15
Newbie LimeWire and Java Installation


I have installed the latest Java Runtime on RedHat 9 but when I type in the shell:

java -version

the response I get is:

bash: java: command not found

When I type in:

which java

the response I get is:

/usr/bin/which: no java in (/usr/kerberos/sbin:/usr/java/j2rel.4.2_01/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/dad/bin)

Is there something wrong with my installation?

Any help would be much appreciated.

Regards,
Bill Dika
 
Old 09-24-2003, 07:52 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Add

usr/java/j2rel.4.2_01/bin

to your path

/etc/profile

PATH=$PATH:usr/java/j2rel.4.2_01/bin
 
Old 09-24-2003, 07:52 PM   #3
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Add

usr/java/j2rel.4.2_01/bin

to your path

/etc/profile

PATH=$PATH:/usr/java/j2rel.4.2_01/bin
 
Old 09-25-2003, 07:26 PM   #4
bdika
Member
 
Registered: Aug 2003
Location: London, Canada
Distribution: Arch Linux
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks Looking_Lost.

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.

Regards,
Bill Dika
 
Old 09-25-2003, 09:51 PM   #5
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
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.
 
Old 09-26-2003, 10:45 AM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
'Tis strange

The way I normally find where things are

updatedb

then

locate java

or

find java | more

if nothing comes up for that then something has more than likely gone wrong with your install
 
Old 09-27-2003, 12:08 AM   #7
bdika
Member
 
Registered: Aug 2003
Location: London, Canada
Distribution: Arch Linux
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks

I tried

locate java

There are a lot of java files on my computer so the installation worked. But there appears to be something wrong.

There is a 24 KB executable file called java in the directory :

/usr/java/j2sdk1.4.2_01/bin

When I click on it in the Konqueror window a dialog box comes up which says:

"Couldn't find the program java."

Does that mean there is a missing component or file?

I have now installed both the run time and the SDK.

Another way I tried to determine if java was installed was:

[root@localhost bin]# cd /usr/java/j2sdk1.4.2_01/bin
[root@localhost bin]# java -version
bash: java: command not found
[root@localhost bin]#

As you can see, I haven't had any luck.

Any ideas would be greatly appreciated.

Regards,
Bill Dika
 
Old 09-27-2003, 12:16 AM   #8
bdika
Member
 
Registered: Aug 2003
Location: London, Canada
Distribution: Arch Linux
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks r_jensen11

But I don't have a java directory in my /usr/local/ directory.

Any other ideas?

Please see my other post to get an idea of the responses I am getting from my system.

Regards,
Bill Dika
 
Old 09-27-2003, 10:24 AM   #9
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
have you tried using your path /usr/java? Check and see if that works. Does anything else you have use java?
 
Old 09-27-2003, 11:02 AM   #10
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you've got a directory

/usr/java/j2sdk1.4.2_01/bin

You've downloaded the full development kit

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.
 
Old 09-27-2003, 11:52 PM   #11
bdika
Member
 
Registered: Aug 2003
Location: London, Canada
Distribution: Arch Linux
Posts: 60

Original Poster
Rep: Reputation: 15
Looking_Lost

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.

Regards,
Bill Dika
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LimeWire and Java loke137 Linux - Software 26 03-09-2007 05:42 AM
:-( Limewire installation: "Invocation of this Java Application has caused an Invoc" michelbehr Linux - Software 4 01-23-2005 09:54 AM
LimeWire Installation Problems- No Java virtual machine could be found... DYNO Linux - Software 2 12-04-2004 11:59 AM
Java SDK installation - Newbie needs help! jacksmash Linux - Software 2 11-01-2003 01:49 PM
Help with LimeWire/Java please. DarkGhost Linux - Software 21 06-04-2002 07:27 PM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration