LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting environment PATH (https://www.linuxquestions.org/questions/linux-newbie-8/setting-environment-path-48627/)

heathpitts 03-06-2003 06:04 PM

setting environment PATH
 
I have installed RH8 and I was trying to install Limewire and it said it needed Java VM to run. So I downloaded the newest java virtual machine from Sun and installed it. The problem is, Limewire still does not see it. It says there is no java in the path. the path to the actual java is /usr/java/jre... How do I set this PATH?

Blindsight 03-06-2003 06:51 PM

Figure out what directory it's looking for java vm in. You can do this by opening it's configure script in a text editor (assuming it uses configure or some other ascii config file.) Then set the env var it's looking for by using set or export or whatever syntax your shell uses to set env vars.

heathpitts 03-06-2003 09:04 PM

where do i find out what bash uses to set environment variables?

Crashed_Again 03-06-2003 09:23 PM

I think what you want to do is:

export PATH=$PATH:/usr/java/jre-your-version-here

Then see if Limewire installs.

CondorPasa 03-07-2003 06:52 AM

You can also add a line by Crashed_Again to your
.bashrc file. This will set PATH variable automatically every time
you login.

ksgill 04-11-2003 11:35 PM

Hi,
I have the same problem and I tired export command u have there. It didnt help at all. Is there any other way of doing this?

Crashed_Again 04-11-2003 11:36 PM

Is java installed? Did you set the correct path to java?

ksgill 04-11-2003 11:38 PM

Java j2sdk1.4.1_02 is installed and no I havent set its path variables because I dont know how to. Sorry, I am a newbie to linux :) How do i do this?

Crashed_Again 04-11-2003 11:39 PM

Quote:

Originally posted by Crashed_Again
I think what you want to do is:

export PATH=$PATH:/usr/java/jre-your-version-here

Then see if Limewire installs.

Like I said above.

ksgill 04-11-2003 11:43 PM

I used this command and the direcory is correct -
export path=$PATH:/usr/java/jre-1.4.1_02
doesnt work

Crashed_Again 04-12-2003 09:44 AM

I think you have to add the /bin on the end of that because the java command is in the /bin directory:

export PATH=$PATH:/usr/java/jre-1.4.1_02/bin

captain_bogus 04-12-2003 12:55 PM

I'm having the same problem
 
I'm having the same problem. I typed the command into the "Konsole" and got the same result..."No Virtual Machine could be found from your PATH environment variable"

I typed it just like this, and yes that is j2re. I've tried it with the /bin, without the bin, with j2re...and with jre...

export path=$PATH:/usr/java/j2re1.4.1_02/bin

Thanks for any help/suggestions

ksgill 04-12-2003 10:00 PM

Yep, I tried all that too..doesnt work for some reason :|

Crashed_Again 04-13-2003 12:02 AM

Ummm...okay its possible that you have java installed some where else as well. Do:

locate java | more

and make sure that you do not have the java executable installed anywhere else besides /usr/java/j2re1.4.1_02/bin . If you do then it is possible that the limewire installer is using the java executable from somewhere else besides /usr/java/j2re1.4.1_02/bin .

ksgill 04-13-2003 12:44 AM

I checked it and it isnt installed anywhere else but in /usr/java/j2re1.4.1_02/bin . I am sure the problem is not with limewire as I was trying to complie a java program using javac and its path variable wasnt updated either. I had to type complete path in order to make it work. I dont know what the problem is ..anyway,
Thanks for your help crashed_again and others


All times are GMT -5. The time now is 02:58 PM.