LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 07-13-2004, 12:24 AM   #1
murbz
LQ Newbie
 
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11

Rep: Reputation: 0
Question ErrorMessage "Java virtual machine could be found from your PATH .. What do i Do ?


Hey All!

Been on this computer for the last 4 hours trying to resole tis problem. Ive been trying to install LimeWire.bin. It comes up however with the following error message!

"Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program."

For starters what on earth is this and second of all how would i rectify this little problem..
I hav donwloaed the Java apliucation that i need, but now im having problem installing this!..

Ive tried editong my '.bash_profile' but im not sure if it's correct.. Well obvioulsy not!

I think that this is where the problem lies!

Anyways if someone could help me out tha would be mostly apprciated!

..Murbz
 
Old 07-13-2004, 02:26 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Post your ~/.bash_profile, so that we can see what you did.

You must add the java to your PATH, and set the JAVA_HOME variable.

In your ~/.bash_profile, add the following lines
Code:
PATH=/usr/local/java/bin:$PATH
export PATH
and also
Code:
JAVA_HOME=/usr/local/java
export JAVA_HOME
assuming you have installed java in /usr/local/java

I hope this helps
--Ian

Last edited by IBall; 07-13-2004 at 10:46 PM.
 
Old 07-13-2004, 04:58 AM   #3
BluePyre
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172

Rep: Reputation: 30
Java normally wants its 'bin' directory in your path. My file looks like
path=PATH:/usr/java/j2sdk1.4.2_04/bin
 
Old 07-13-2004, 08:40 PM   #4
murbz
LQ Newbie
 
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks a lot guys! It Now Works, running the installation as im writing!... Thanx a lot for your help!!!
Now says LimeWire SUCCESSFULLY INSTALLED!!!!
 
Old 07-18-2004, 01:55 PM   #5
Forezt
Member
 
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80

Rep: Reputation: 15
Ok, I'm having the same problem, but when I try to add thoselines to my .bash_profile it makes it so I can't log back into the account. I logged back in as root and removed the extra lines and that fixed it. So now I think I did something wrong.

This is my working .bash_profile:

Code:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
My path to java is /usr/java. Could someone tell me where I need to put the extra lines?
 
Old 07-18-2004, 09:24 PM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Try adding the lines to ~/.bash_profile, and then typing
Code:
source ~/.bash_profile
This should then give some error messages if you have done something wrong. Post the error messages here, and we can see how to fix them.

--Ian
 
Old 08-23-2004, 07:14 AM   #7
rasgward
Member
 
Registered: May 2004
Location: Virginia
Distribution: ubuntu
Posts: 31

Rep: Reputation: 15
still having issues with no java installed

Hey y'all,
my level of experience is very low, so if you could step by step it, I would so appreciate it. Okay, so I downloaded limewire into its own folder /home/rasgward/limewire
Then I tried to install, finding out that I needed JAVA, so I downloaded the java file j2re-1_4_2_05-linux-i586-rpm
to the folder /home/rasgward/java
Then I rpm'd it into the same folder I guess. Now when I went back to the limewire folder and repeated the install it gave the same no vm in the path....
While in that stage, I googled the statement "no virtual machine could be found..." and got this thread. I then took or so I thought the advice on here, but still couldn't figure it out. Could you assume I didn't take the advice and go from there and direct me. I also copied the files j2re....rpm and the j2re...rpm.bin to the /usr/local/ area which I thought might help but still didn't really know what I was doing. Please help. Thanks. -Greg
 
Old 08-24-2004, 12:09 AM   #8
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
Just link it symbolically. Get the exact path of the java binary and as root cd into /usr/bin and type:

ln -s /usr/pathtojava/bin/java

Then java bnary should be in your path as long as /usr/bin is.
 
Old 09-13-2004, 09:39 PM   #9
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
Where can i find my bash profile? Cause i am having the same problem the thread starter has, because when i installed my Slack i got a fatal error message for that tar.gz package and i redownloaded it but i dont where to put it and what to do with it, cause installing it doesnt work alone.

Linux Kernel: 2.4.26
KDE: 3.2
Intel 845 Chipset
SlackWare 10

Last edited by N|k0N; 09-13-2004 at 09:40 PM.
 
Old 09-13-2004, 09:46 PM   #10
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Your .bash_profile is in your home directory.

Install Java into /usr/local/java, (as root) and then add the lines I posted above to your .bash_profile.

--Ian
 
Old 09-13-2004, 10:00 PM   #11
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
This is what i get when i try to install java into /usr/local/java
Quote:
./doinst.sh: line 1: cd: usr/lib: No such file or directory
./doinst.sh: line 2: cd: usr/lib: No such file or directory
./doinst.sh: line 3: cd: usr/lib/j2sdk1.4.2_04/jre/lib/i386/client: No such file or directory
./doinst.sh: line 4: cd: usr/lib/j2sdk1.4.2_04/jre/lib/i386/client: No such file or directory
./doinst.sh: line 5: cd: usr/lib/j2sdk1.4.2_04/jre/lib/i386/server: No such file or directory
./doinst.sh: line 6: cd: usr/lib/j2sdk1.4.2_04/jre/lib/i386/server: No such file or directory
./doinst.sh: line 7: cd: usr/lib/j2sdk1.4.2_04/man: No such file or directory
./doinst.sh: line 8: cd: usr/lib/j2sdk1.4.2_04/man: No such file or directory
Also, I dont see the bash profile in my home directory, any chance it could be somewhere else or isnt for some reason in my directory???

Last edited by N|k0N; 09-13-2004 at 11:53 PM.
 
Old 09-14-2004, 01:32 AM   #12
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Did you download the self-extracting bin file from java.sun.com ?
If not, I suggest you use that one, as that is the one I have used successfully.

In your home directory, do a "ls -a" which will also list the hidden files. If .bash_profile is not there, simply create it with your favourite text editor, and add the lines above. Once you have done this, type "source ~/.bash_profile" and try to execute the command "java". It should give you a brief help message.

I hope this helps
--Ian
 
Old 09-14-2004, 03:15 AM   #13
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
Yeah i went to java.sun.com and installed the self extracting .bin file, I set it up in /usr/local/java liked i was supposed to, the install went great. I didnt find a .bash_profile when i checked that directory with "ls -a" so i created one and added the lines like you said. Now when i added those lines and used the comman "source ~/.bash_profile" it doesnt say anything or give me any kind of help file, it just goes back to the root prompt after i use the command and when i try to install LimeWire i get the same old message. Maybe i am still doing something wrong? I dont know how to execute a command, maybe that might be it, is it the "exec" command? If so what do i use with it to execute java? "exec java" doesnt do anything but tell me that java is not found.

Last edited by N|k0N; 09-14-2004 at 03:17 AM.
 
Old 09-15-2004, 05:13 AM   #14
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Sorry if I was unclear, what happens when you enter the command "java" ?

Did you include the line "export PATH" and "export JAVA_HOME". When you source .bash_profile, you should get no error messages.

--Ian
 
Old 09-15-2004, 11:39 AM   #15
N|k0N
Member
 
Registered: Aug 2004
Location: New York
Posts: 63

Rep: Reputation: 15
When I enter the command "Java" it says "command not found". IF you meant if i included "export PATH" and "export JAVA_HOME" for the .bash_profile then yes.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LimeWire Installation Problems- No Java virtual machine could be found... DYNO Linux - Software 2 12-04-2004 11:59 AM
"No Java virtual machine could be found from your PATH" - ignores bashrc shaider Linux - Software 7 10-09-2004 12:38 AM
Java Virtual Machine zexter Linux - Software 1 11-30-2003 04:28 PM
Java Virtual Machine gilch Linux - Newbie 8 10-23-2003 01:38 AM
Anyone Know where I can get a Java Virtual Machine? pmorkert Linux - Software 2 07-29-2003 11:17 PM


All times are GMT -5. The time now is 08:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration