User guide

Chapter 8: Port Configuration and Port Access Application
75
Setting Linux OS Variables
IfyouwanttosetJavaforaspecificuser,openandeditthe.profilefile
locatedinthe/home/Usernamefolder.
IfyouwanttosetJavaforallusers,openthe.profilefileinyour/etc
folder:
1. Findthelinewhereyousetyourpath:
export
PATH=$PATH:/home/username/somefolder
2. BeforethatlineyoumustsetyourJAVA_HOMEandthenmodify
yourPATHtoincludeit.Toachievethis,addthefollowinglines:
export
JAVA_HOME=/home/username/j2sdk1.4.2/
export PATH=$PATH:$JAVA_HOME/bin
3. Savethefile.
Setting UNIX OS Variables
PerformthefollowingstepstocheckthelatestJREversiononSunSolaris.
1. LaunchaterminalwindowontheSunSolarisdesktop.
2. Typejava‐versioninthecommandlineandpressEnter.The
currentlyinstalledversionofJavaRuntimeEnvironment(JRE)
appears.
Ifyourpathvariableisnotsettowhereth
eJa
vabinarieshave
beeninstalled,youmaynotbeabletoseetheJREversion.
AssumingJRE1.4.2_05isinstalledin/usr/local/java:youmustset
yourPATHvariable.
Tosetapathforthebashshell:
export
PATH=$PATH:/usr/local/java/j2re1.4.2_05/bin
Tosetpathfortcshorcsh:
set
PATH = ($PATH /usr/local/java/j2re1.4.2_05/bin)