UGII_JAVA_HOME
UGII_JAVA_HOME
(OP)
Is this variable required to get the external STEP translators to work in NX9 ?
If so, what should it be set to ?
If so, what should it be set to ?
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)





RE: UGII_JAVA_HOME
In my case it's set to C:\Program Files\Java\jre1.8.0_25 (64bit version of the latest Java 8 Update 25).
It should be set to the folder containing the 'bin' and 'lib' folders.
Anthony Galante

Senior Support Engineer
NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3
NX8.5.0 -> NX8.5.3, NX9.0.0 -> NX9.0.3, NX10 Beta
RE: UGII_JAVA_HOME
Any ideas how to handle the variable when users have differing versions of Java ?
I was planning to use ugii_env.dat
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: UGII_JAVA_HOME
#if $USERNAME = "fred"
UGII_JAVA_HOME =
#endif
not sure if 'else if' is supported in the env file.
Anthony Galante

Senior Support Engineer
NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3
NX8.5.0 -> NX8.5.3, NX9.0.0 -> NX9.0.3, NX10 Beta
RE: UGII_JAVA_HOME
www.nxjournaling.com
RE: UGII_JAVA_HOME
Surely it can't have to be set on a PC by PC basis ?
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: UGII_JAVA_HOME
www.nxjournaling.com
RE: UGII_JAVA_HOME
When NX starts, it searches for installed java versions in c:\apps\Java\jre7x64 and "C:\Program Files\Java\jre7", and defines UGII_JAVA_HOME. You should see in your syslog. If the step is failing, look in your temp folder for a syslog - if it is required, you should see it there.
Mark Rief
NX CAM Customer Success
Siemens PLM Software
RE: UGII_JAVA_HOME
Didn't change any settings at all.
What I have in C:\Program Files\Java and C:\Program Files (x86)\Java are folders called:
jre1.8.0_25
If that's what the default is and you have users updating on their own free will, you're going to have to allow for it.
Anthony Galante

Senior Support Engineer
NX5.0.6, NX6.0.5, NX7.5.5, NX8.0.0 -> NX8.0.3
NX8.5.0 -> NX8.5.3, NX9.0.0 -> NX9.0.3, NX10 Beta
RE: UGII_JAVA_HOME
@Mark ... I don't see that variable defined when launching NX.
@Anthony ... Allowing for it is easier said than done.
I've called it in to GTAC, we can't expect users to have to change an environment variable every time they update Java.
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: UGII_JAVA_HOME
Then point your UGII_JAVA_HOME to that.
That way someone updates, it doesn't matter, NX will always use the one you have copied to that structure.
Anthony Galante

Senior Support Engineer
NX3 to NX9 with almost every MR (18versions) plus the NX10 Beta
RE: UGII_JAVA_HOME
That sounds a reasonable solution, I may look into that.
I set the variable in a BAT file, so I maybe able to "parse" the version of Java that is installed.
What escapes me is why NX needs the variable,
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: UGII_JAVA_HOME
It then sets the variable accordingly.
NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
RE: UGII_JAVA_HOME
where each new java update again kills the workarounds Siemens provides.
Could we somehow pass the Java version to Internet Explorer when we start the manual from NX , such that the search works consistently. ?
Regards,
Tomas