×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

UGII_JAVA_HOME

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 ?

NX 9.0.3.4
NX 10 (Testing)
Windows 7 64 (Windows 8.1 Tablet)

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

(OP)
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)

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

(OP)
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)

RE: UGII_JAVA_HOME

If you have a standard location to install java, then there is no problem...

www.nxjournaling.com

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

(OP)
@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)

RE: UGII_JAVA_HOME

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

RE: UGII_JAVA_HOME

(OP)
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)

RE: UGII_JAVA_HOME

(OP)
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)

RE: UGII_JAVA_HOME

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


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources