finding java path?
im a linux :newbie: and im having some probs, i installed java because it told me i needed to have to to install limewire...now that it is installed and i try to install limewire with the commands cd /home/Adam/Documents then chmod 755 LimeWireLinux.bin then ./LimeWireLinux.bin and i get the 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. so i did some checking and i found my java is installed in root/usr/java and it is version j2re1.4.1! would someone please explain to me in the simpilist of terms how to fix that problem, the only shell commands i know is what i have saw by looking trying to fix that, so please tell me EXACTLY what ineed to type to fix this thanks! |
Please don't double post, especially so close together like this. I understand if it was an accident, like you pressed submit too many times or whatever, but if you did this for more answers, this is not a good idea. :tisk:
Cool |
put this into your /home/usrname/.bashrc
export PATH="/usr/java/j2sdk-version/bin":$PATH (assumed your java resides on /usr/java) u may name j2sdk exactly but be careful not to make a spell error. this can lead to fatal errors on your machine. fatal! if there is a command like export $PATH already in this file then u have to place this linebehind the first export command. there may be another config file on your system like /etc/rc.config or /etc/profile or similar where u can place this command too, if needed to make the $PATH variable visible to your system u have to source /home/usrname/.bashrc logged in as usrname or reboot your box call `echo $PATH` to see if it's found cheers, jens |
All times are GMT -5. The time now is 04:45 AM. |