Java Virtual Machine
I am trying to install LimeWareLinux.bin and it does this:
>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. I am using Mandrake Linux 9.1. Does anyone know what I have to do in order to successfully install LimeWareLinux.bin? |
as the error msg says, it needs the java vm to run. if you have installed it, and this things not picking it up, insert that path to the vm to your shells "PATH".
now, if you dont have java vm, get it from java.sun.com |
POST stuff
same issue here - java vm is installed - how do i insert the path to the vm in the shell's path? i don't really know what the "path" is...new to linux.
|
if you're using bash as ur shell,
first find the place you have placed java. in my case, its under "/home/abc/src/j2sdk1.4.2_01/bin" so, i edit my ".bash_profile" (make it if its not there), and add the lines Code:
PATH=$PATH:/home/abc/src/j2sdk1.4.2_01/bin "echo $PATH" and you should see the path to java added |
almost
i don't have a '.bash_profile', and i created one with nano, but when i ran echo $PATH there was no java on it...do i have to edit a bash profile file that i already have? if so, where is this file located, and what's it called? thanks for the help, and the quick response.
|
alternately, u can just type that command at prompt:
"export PATH=$PATH:/home/abc/src/j2sdk1.4.2_01/bin" "echo $PATH" will now show you. but u wont have to do it everytime if you write it in .bash_profile, which is to be under the user home dir. in my case, "/home/abc" [/home/abc/.bash_profile] and umm, after u create the file, u have to write the command in it. like a batchj file thingie. so /home/abc/.bash_profile will contain "PATH=$PATH:/home/abc/src/j2sdk1.4.2_01/bin export PATH" |
also you can set the Java path permanently for all users by editing your /etc/profile which the last 3 lines of the example is what you want to add.
Code:
# Path manipulation |
ok
ok - writing it in at the command prompt works - it shows up in echo.
but copying into the .bash_profile doesn't seem to work. There was already a PATH=$PATH:$Home/bin there - i tried putting the java after that, and also erasing that and putting it in instead. In both cases, i saved and quit, but then the java didn't show up in echo. it did work at the prompt though, and then i ran limewire installer which worked, but the new problem is that it's in the /root dir, which nautilus won't let me access! i can't change the permissions on the folder, even when i'm logged in as root. that's an odd one. any ideas there? question #2 is, for adding java to the /etc/profile like megaspaz suggests, should i add all the lines of code in his example, or just the last three? i don't have any of that pathmunge stuff in my /etc/profile. know that's a lot - and i'm going to bed - hopefully some answers as i wake. thanks yall. |
Re: ok
Quote:
edit: also make sure the java path you use is right. sun has 2 types of downloads. the JRE and SDK. mine uses the sdk file path. If you're using the JRE, you need to use that file path. |
All times are GMT -5. The time now is 03:08 AM. |