ErrorMessage "Java virtual machine could be found from your PATH
.. What do i Do ?
Linux - SoftwareThis 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.
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.
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!
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?
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
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
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???
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.