Hi all, Just a quick follow-up on this issue, on RedHat systems (from 6.x and up) it is usually better to create a file under /etc/profile.d/ (name it "java_env.sh", the .sh suffix is important ) than to edit /etc/profile. /etc/profile is a system file included in RedHat's packages. Putting your settings in new files under /etc/profile.d will make them more resistant to updates and upgrades of the operating system. Also, if you want C-shells on the machine to also have JAVA_HOME, simply create an /etc/profile.d/java_env.csh file with C-shell syntax. I hope this helps.
Vincent S. Cojot, [EMAIL PROTECTED] > Paul Tremblay wrote: >> Reply-To: >> >> I would like to set install fop and need to know how to set up the >> variable JAVA_HOME. Specifically, the directions state: >> >> You have to set the enviroment variable JAVA_HOME. It must point to >> your local JDK root directory. >> >> Can anyone tell me how to do this? > > As root, edit /etc/profile to include the line > > export JAVA_HOME=/wherever/you/installed/it > > I don't know about all distros, but it may be a better idea > to put it in /etc/profile.local instead. SuSE, for example, > actually starts /etc/profile with the comment > > # PLEASE DO NOT CHANGE /etc/profile. There are chances that your changes > # will be lost during system upgrades. Instead use /etc/profile.local > for # your local settings, > > I am sure someone will chime in with additional places it > can be set. ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]