Can't Find Java Home Variable
Articles and Tips: qna
01 Sep 2002
Q.
I've run into a problem with the JAVA_HOME environment variable. It is being set to SYS:\JAVA\java when JAVA.NLM loads. Coincidentally, this happens only on servers which have the ZENworks for Desktops automatic workstation import service installed.
I've checked the SYS:\ETC\JAVA.CFG and SYS:\ETC\JAVA.ORG files, and both of them set JAVA_HOME to SYS:\JAVA, which is the default. After manually setting the variable, if I reload Java, it reverts back to the SYS:\JAVA\java setting.
I've tried loading Java, and manually setting the environment variable with envset JAVA_HOME= SYS:\JAVA, but when I try to execute STARTX it fails with an error that my servrc file is corrupt. However, once I duplicated the contents of SYS:JAVA into SYS:JAVA\java, STARTX will start, even though the JAVA_HOME variable is still set to SYS:\JAVA.
I'm hoping that you can give me a clue about where else the JAVA_HOME environment variable might be set. I'm sure it's something obvious, but I'm totally missing it. I've tried searching the contents of all files on SYS for JAVA_HOME, but the JAVA.CFG and JAVA.ORG files are the only ones I could find that appear to be setting the variable.
Missing Variable with Mulikan
A.
Dear Missing: This one has a very simple answer: sys/etc/java.cfg. NetWare servers provide the sys/etc directory structure on the SYS volume for the storing of data and other information.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.