LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-22-2003, 11:34 PM   #1
gilch
LQ Newbie
 
Registered: Jul 2003
Location: Cleveland
Distribution: Mandrake 9.1
Posts: 3

Rep: Reputation: 0
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?
 
Old 10-22-2003, 11:48 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
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
 
Old 10-23-2003, 12:06 AM   #3
homme
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-23-2003, 12:30 AM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
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
 
Old 10-23-2003, 12:44 AM   #5
homme
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-23-2003, 12:48 AM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
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 12:50 AM.
 
Old 10-23-2003, 12:55 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 10-23-2003, 01:33 AM   #8
homme
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-23-2003, 01:38 AM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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 01:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Virtual Machine nodnarb Linux - Software 1 07-19-2004 04:41 PM
Java Virtual machine ServalSoft Linux - Software 1 02-13-2004 08:27 PM
Java Virtual Machine zexter Linux - Software 1 11-30-2003 04:28 PM
Anyone Know where I can get a Java Virtual Machine? pmorkert Linux - Software 2 07-29-2003 11:17 PM
Java Virtual Machine beajedi Linux - Newbie 4 07-09-2003 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration