Drakain Zeil Posted August 20, 2004 Report Share Posted August 20, 2004 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? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 21, 2004 Report Share Posted August 21, 2004 (edited) 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 August 21, 2004 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 23, 2004 Author Report Share Posted August 23, 2004 Ah, thanks. :D Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted August 24, 2004 Report Share Posted August 24, 2004 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 <{POST_SNAPBACK}> 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.