Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
|
10-23-2003, 12:34 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Cleveland
Distribution: Mandrake 9.1
Posts: 3
Rep:
|
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?
|
|
|
10-23-2003, 12:48 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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
|
|
|
10-23-2003, 01:06 AM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 3
Rep:
|
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.
|
|
|
10-23-2003, 01:30 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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
export PATH
and then to check it, do
"echo $PATH"
and you should see the path to java added
|
|
|
10-23-2003, 01:44 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Posts: 3
Rep:
|
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.
|
|
|
10-23-2003, 01:48 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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"
Last edited by h/w; 10-23-2003 at 01:50 AM.
|
|
|
10-23-2003, 01:55 AM
|
#7
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
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
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
JAVA_HOME=/usr/java/j2sdk1.4.2_01
pathmunge $JAVA_HOME/bin after
export JAVA_HOME
most likely after adding this you will have to logout and log back in so the /etc/profile file will be read again.
|
|
|
10-23-2003, 02:33 AM
|
#8
|
LQ Newbie
Registered: Oct 2003
Posts: 3
Rep:
|
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.
|
|
|
10-23-2003, 02:38 AM
|
#9
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
Re: ok
Quote:
Originally posted by homme
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.
|
just the last three. but copy them in the same place of your /etc/profile. not sure if that's necessary though. but since mine works, you may want to do that.
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.
Last edited by megaspaz; 10-23-2003 at 02:40 AM.
|
|
|
All times are GMT -5. The time now is 08:02 PM.
|
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
|
|