Jump to content

Small question...


Drakain Zeil
 Share

Recommended Posts

I would have used google normaly, but it's too genaric of a search for me to get what I'd want.

 

I installed Java, but I get this error when installing somthing that needs it:

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.

 

What I want to know is, what is the "PATH" and how do I set up an installation of java to get this working?

Link to comment
Share on other sites

You can do it two different ways. My java is in /usr/java/j2re1.4.2_03/bin, so I can make a symlink to it in /usr/bin (as root, in a console):

 

ln -s /usr/java/j2re1.4.2_03/bin/java /usr/bin/java

ln -s /usr/java/j2re1.4.2_03/bin/java_vm /usr/bin/java_vm

 

Or I could add /usr/java/j2re1.4.2_03/bin to my PATH. In /etc/profile, I could add this:

if ! echo ${PATH} |grep -q /usr/java/j2re1.4.2_03/bin; then
   PATH="$PATH:/usr/java/j2re1.4.2_03/bin"
fi

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Or I could add /usr/java/j2re1.4.2_03/bin to my PATH. In /etc/profile, I could add this:

if ! echo ${PATH} |grep -q /usr/java/j2re1.4.2_03/bin; then
   PATH="$PATH:/usr/java/j2re1.4.2_03/bin"
fi

 

In addition, some programs need the JAVA_HOME environment variable to be set before they will work. You may want to add this to your /etc/profile as well.

 

JAVA_HOME=/usr/java/j2re1.4.2_03

export JAVA_HOME

 

Notice that the JAVA_HOME variable does not include the /bin at the end of the path.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...