![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.) |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
| |||
![]() As a newbie to linux I was haveing a hard time figureing out how to set the java home. non oth the other directions I tried seem to work for me. I found these instruction when I was trying to install java for another app. it's fail proof. First install java from rpm or bin dist. To set up the global variable JAVA_HOME and add the binary directory to the path can be done by adding scripts to the /etc/profiles.d directory. Using your favourite editor, create /etc/profiles.d/java.sh and /etc/profiles.d/java.csh. These are respectively: #!/bin/sh # JAVA additions JAVA_HOME=/usr/java/j2sdk1.4.2 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME PATH # End of .sh version #!/bin/csh # JAVA additions if ( ! $?JAVA_HOME ) then setenv JAVA_HOME /usr/java/j2sdk1.4.2 endif if ( $?PATH ) then setenv PATH $JAVA_HOME/bin:$PATH else setenv PATH $JAVA_HOME/bin endif # End of .csh version Give the files the same ownership and permissions as other files in the directory. Execute the .sh file just created to set up the correct environment for JAVA. # source /etc/profile.d/java.sh That's it for installing Java |
![]() |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
i need help; LW says please install the new version of java after installing Java | Logan_2468 | Windows | 7 | October 5th, 2009 11:07 PM |
Installing Java | b4k4^ni | General Linux Support | 34 | July 16th, 2007 09:14 PM |
NEWBIE installing LW and cant get information to load in main page | bluehawk4355 | Getting Started Using LimeWire + WireShare | 12 | March 12th, 2007 04:07 PM |
Installing Java | humbertoarte | Windows | 5 | October 11th, 2006 09:25 AM |
newbie here--upgraded java but am having problems | joyrider | General Windows Support | 4 | December 15th, 2004 12:59 PM |