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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
08-24-2003, 04:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Rep:
|
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
|
|
|
08-24-2003, 05:05 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Where is java located?
if you type
which java
you should get back something like
/usr/bin/java
|
|
|
08-24-2003, 05:13 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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
|
|
|
08-24-2003, 05:24 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
08-24-2003, 05:28 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
umm...
when I type ls *java*, it says there is no such file or directory
|
|
|
08-24-2003, 05:31 AM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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).
|
|
|
08-24-2003, 05:42 AM
|
#7
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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
|
|
|
08-24-2003, 05:42 AM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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
|
|
|
08-24-2003, 05:55 AM
|
#9
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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?
|
|
|
08-24-2003, 06:07 AM
|
#10
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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 06:09 AM.
|
|
|
08-24-2003, 06:10 AM
|
#11
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
/usr/java/j2re1.4.2/bin
Does this directory exist and if so whats in it?
HOw about just /usr/java
|
|
|
08-24-2003, 06:16 AM
|
#12
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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 06:18 AM.
|
|
|
08-24-2003, 06:19 AM
|
#13
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Yes
cd /usr/bin
ln -s /usr/java/j2re1.4.2/bin/java java
Now try that script again
|
|
|
08-24-2003, 06:30 AM
|
#14
|
LQ Newbie
Registered: Aug 2003
Posts: 17
Original Poster
Rep:
|
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
|
|
|
08-24-2003, 06:52 AM
|
#15
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|