LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-24-2003, 03:54 AM   #1
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
command java not found?!


I'm trying to get a program called Freemind working...

it needs a java runtime environment which I've downloaded and installed but when I try to run the freemind.sh script, it says that the command "java" is not found...

so I'm really stuck...have no idea

cheers for any help
 
Old 08-24-2003, 04:05 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Where is java located?

if you type

which java

you should get back something like
/usr/bin/java
 
Old 08-24-2003, 04:13 AM   #3
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I get back:

/usr/bin/which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/alvin/bin)


btw, thanks leonscape...really appreciate your help on this
 
Old 08-24-2003, 04:24 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Okay so we need to locate the Java VM.

Type
cd /usr/bin
ls *java*

This should list anything with java in its name.

Then create a symlink to the java-VM with

ln -s yourJavaVM java

and try again.
 
Old 08-24-2003, 04:28 AM   #5
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
umm...

when I type ls *java*, it says there is no such file or directory
 
Old 08-24-2003, 04:31 AM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
When your in /usr/bin ? This is odd.

So what was the VM you installed. And do you know where it ended up?

---

P.S. try /usr/local/bin and /bin and ~/bin (Just to be sure).
 
Old 08-24-2003, 04:42 AM   #7
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
yeah, I tried /usr/local/bin and /bin and both came back with no such file or directory

and it said that for ~/bin that /home/alvin/bin does not exist

I downloaded the j2re 1.4.2 self-extracting rpm i think, but I don't know where it ended up...it didn't tell me...I thought that it just goes to a pre-defined path but I can't seem to find it
 
Old 08-24-2003, 04:42 AM   #8
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
yeah, I tried /usr/local/bin and /bin and both came back with no such file or directory

and it said that for ~/bin that /home/alvin/bin does not exist

I downloaded the j2re 1.4.2 self-extracting rpm i think, but I don't know where it ended up...it didn't tell me...I thought that it just goes to a pre-defined path but I can't seem to find it
 
Old 08-24-2003, 04:55 AM   #9
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Well we'd better search for j2re

ls -l /usr/bin/j2re* (etc. till we find it.)

BTW:
Self extracting rpm you did run rpm -i on the rpm right?
 
Old 08-24-2003, 05:07 AM   #10
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Post

yes, the rpm is definitely installed because when I tried to rpm it again it said that package j2re-1.4.2-jcs is already installed

i did ls -l /usr/bin/j2re* but it said no such file or directory and same for sbin

i also tried "locate java" but it came up with a long list of names the most relevant I thought was /usr/share/java but inside the directory was libgcj....

any other suggestions, leonscape?

Last edited by weeboab; 08-24-2003 at 05:09 AM.
 
Old 08-24-2003, 05:10 AM   #11
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
/usr/java/j2re1.4.2/bin

Does this directory exist and if so whats in it?

HOw about just /usr/java
 
Old 08-24-2003, 05:16 AM   #12
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
hahhaa! sweet

well...inside /usr/java/j2re1.4.2/bin we have an app called java!!!!

cool...so now I just symlink it like you showed me before? yeah?

so I go:
ln -s /usr/java/j2re1.4.2/bin/java java?

Last edited by weeboab; 08-24-2003 at 05:18 AM.
 
Old 08-24-2003, 05:19 AM   #13
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Yes

cd /usr/bin
ln -s /usr/java/j2re1.4.2/bin/java java

Now try that script again
 
Old 08-24-2003, 05:30 AM   #14
weeboab
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
fan-feckin-tastic...

thats excellent...it all works...

thanks so much leonscape...totally owe ye one

btw, where in the uk are ya? I used to live in Glasgow...now I'm in Sydney

whats your msn/icq contact? if you don't mind me askin...great bloke, champs
 
Old 08-24-2003, 05:52 AM   #15
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
I live in St Helens (Between Liverpool and Manchester)

Don't have ICQ set up yet. (The AOL pages refuse to load. Timeouts)

Got good old fashioned e-mail though.
 
  


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
question about java command not found bbmak Linux - Software 3 10-02-2005 01:23 PM
java command not found???? haora Linux - Newbie 3 03-30-2005 10:27 AM
java:command not found allendefall Linux - Software 1 12-24-2004 01:57 AM
java: command not found inteliblake Linux - Software 4 10-10-2003 08:56 PM
java command - "bash: java: command not found" ??? RedHat123 Programming 2 07-16-2002 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 PM.

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
Open Source Consulting | Domain Registration