0% found this document useful (0 votes)
220 views

2014 NX85 and UGII Java Home

As of NX 8.5 and later, NX no longer provides a JRE (Java Runtime Environment) as part of a default TYPICAL install. Releases prior to NX 8.5 did bundle the JRE along with the binary code for NX. However, the original creators of JAVA (Sun Microsystems) was purchased by ORACLE. At that point in time the legal restrictions for redistributing JAVA were tighten by ORACLE making redistributing JAVA in the NX installation impossible.

Uploaded by

kpalexan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views

2014 NX85 and UGII Java Home

As of NX 8.5 and later, NX no longer provides a JRE (Java Runtime Environment) as part of a default TYPICAL install. Releases prior to NX 8.5 did bundle the JRE along with the binary code for NX. However, the original creators of JAVA (Sun Microsystems) was purchased by ORACLE. At that point in time the legal restrictions for redistributing JAVA were tighten by ORACLE making redistributing JAVA in the NX installation impossible.

Uploaded by

kpalexan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

NX/8.

5 and UGII_JAVA_HOME
Background
As of NX 8.5 and later, NX no longer provides a JRE (Java Runtime Environment) as
part of a default TYPICAL install.
Releases prior to NX 8.5 did bundle the JRE along with the binary code for NX.
However, the original creators of JAVA (Sun Microsystems) was purchased by
ORACLE. At that point in time the legal restrictions for redistributing JAVA were
tighten by ORACLE making redistributing JAVA in the NX installation impossible.

General Principles
UGII_JAVA_HOME environment variable must point to the base directory of the JRE
installation.
The JAVA base directory can be anywhere, but SIEMENS/PLM recommends taking
defaults to minimize the amount of customization required on a new install of NX.
If default path is not used, and UGII_JAVA_HOME not properly defined, certain NX
functionality (ie. translators), will fail.
Customers would then have to manually define UGII_JAVA_HOME.
In such a scenario, UGII_JAVA_HOME may be defined as a user or system
environmental variable or it may be defined inside of ugii_env.dat. (SIEMENS/PLM
preferred method).
The true value of UGII_JAVA_HOME that NX sees can always be cross-checked by
starting NX and consulting the .syslog file.
A typical entry (as listed in .syslog) will look like:
UGII_JAVA_HOME
UGII_JVM_LIBRARY_DIR
UGII_JVM_OPTIONS

c:\apps\Java\jre7x64
c:\apps\Java\jre7x64\bin\server
<not defined>

Note that the JAVA path may be defined in the PATH variable. This value may
or *may not* be the same depending on the requirements of other 3rd party
products that also use JAVA. It is *not* a substitute for UGII_JAVA_HOME.
PATH
c:\apps\Java\jre7x64\bin;E:\sysapp1\nx085\ugii;C:\Windows\system32;...

Suggested default directory for 64 bit JAVA is:


C:\apps\Java\jre7x64

Other acceptable directories are:


C:\Program Files\Java\jre7
C:\apps\Java\jre7
C:\Program Files (x86)\Java\jre7

All these directories are pre-defined and known to ugii_env_ug.dat, which is part of
an NX OOTB install.

Order of search precedence as define in ugii_env_ug.dat is:

#if x64wnt
#if FILE c:\apps\Java\jre7x64
UGII_JAVA_HOME=c:\apps\Java\jre7x64
#else
#if FILE "C:\Program Files\Java\jre7"
UGII_JAVA_HOME="C:\Program Files\Java\jre7"
#endif
#endif
#else
#if FILE c:\apps\Java\jre7
UGII_JAVA_HOME=c:\apps\Java\jre7
#else
#if FILE "C:\Program Files (x86)\Java\jre7"
UGII_JAVA_HOME="C:\Program Files (x86)\Java\jre7"
#endif
#endif
#endif

Author
Jim Palmer
GTAC Systems

You might also like