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.
|
 |
|
07-13-2004, 12:24 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11
Rep:
|
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
|
|
|
07-13-2004, 02:26 AM
|
#2
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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.
|
|
|
07-13-2004, 04:58 AM
|
#3
|
Member
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172
Rep:
|
Java normally wants its 'bin' directory in your path. My file looks like
path=PATH:/usr/java/j2sdk1.4.2_04/bin
|
|
|
07-13-2004, 08:40 PM
|
#4
|
LQ Newbie
Registered: Jul 2004
Distribution: Red Hat Linux Shrike
Posts: 11
Original Poster
Rep:
|
Thanks a lot guys! It Now Works, running the installation as im writing!... Thanx a lot for your help!!!
Now says LimeWire SUCCESSFULLY INSTALLED!!!!
|
|
|
07-18-2004, 01:55 PM
|
#5
|
Member
Registered: Jun 2003
Location: Aero-nomadic
Distribution: Debian (etch, PPC)
Posts: 80
Rep:
|
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?
|
|
|
07-18-2004, 09:24 PM
|
#6
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
08-23-2004, 07:14 AM
|
#7
|
Member
Registered: May 2004
Location: Virginia
Distribution: ubuntu
Posts: 31
Rep:
|
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
|
|
|
08-24-2004, 12:09 AM
|
#8
|
Member
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200
Rep:
|
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.
|
|
|
09-13-2004, 09:39 PM
|
#9
|
Member
Registered: Aug 2004
Location: New York
Posts: 63
Rep:
|
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.
|
|
|
09-13-2004, 09:46 PM
|
#10
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
09-13-2004, 10:00 PM
|
#11
|
Member
Registered: Aug 2004
Location: New York
Posts: 63
Rep:
|
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.
|
|
|
09-14-2004, 01:32 AM
|
#12
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
09-14-2004, 03:15 AM
|
#13
|
Member
Registered: Aug 2004
Location: New York
Posts: 63
Rep:
|
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.
|
|
|
09-15-2004, 05:13 AM
|
#14
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
09-15-2004, 11:39 AM
|
#15
|
Member
Registered: Aug 2004
Location: New York
Posts: 63
Rep:
|
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. 
|
|
|
All times are GMT -5. The time now is 10:37 AM.
|
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
|
|