Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

UGII_JAVA_HOME

Status
Not open for further replies.

phillpd

Mechanical
Oct 19, 2006
780
Is this variable required to get the external STEP translators to work in NX9 ?

If so, what should it be set to ?

NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
 
Replies continue below

Recommended for you

Yes.
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
 
Anthony,

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)
 
test for the username in the env file and set the variable accordingly:

#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
 
Alternatively, use the env file to point to the "standard" location and override that setting on individual computers on an as-needed basis by creating a user-level environment variable.

www.nxjournaling.com
 
I have 600+ users who could have any version of Java from 7 through 8, and who could update their version at anytime.

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)
 
I'm not sure if this is needed for step.

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
 
I got a message last week that Java was out of date, so I updated, by removing the old versions and installing the new one.
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
 
@Cowski ... we do use a common installation folder, the issue is that UGII_JAVA_HOME needs to point to the version folder explicitly.

@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)
 
Why not copy a valid & current Java install to a folder called NXJRE in the NX install folders (this is how it was with NX8 and previous).
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
 
Anthony,

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)
 
We went with a BAT file that interrogates the registry looking for the most current version.

It then sets the variable accordingly.

NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)
 
Regarding the mess with the searching in the manual ,...
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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor