cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Windchill JAVA_HOME

SebastianDrees
10-Marble

Windchill JAVA_HOME

Hello Community,

 

Is it possible to use the system variable JAVA_HOME in the Windchill settings (site.xconf and thus also wt.properties, etc.)? We have an automated update process that updates Java every three months. This also changes the path to the JAVA_HOME directory every time.

 

Many greetings

ACCEPTED SOLUTION

Accepted Solutions

Sebastian,

Whether you're on Linux or Windows, you can create a directory link for "Java" and use that link path in your Windchill setup. When a new Java version is installed, you only need to update the link to point to the new java version path.  The link update can be incorporated into your automated java update process.

 

On Linux, lookup symbolic links. On Windows, look up junctions (mklink.exe /? for help).

 

For example, create a link "C:\PTC\Windchill\Java" that points to "C:\Program Files\Java\<your java version>". Use the link path "C:\PTC\Windchill\Java" in all your Windchill settings.

 

Regards,

Dan N.

View solution in original post

3 REPLIES 3

Sebastian,

Whether you're on Linux or Windows, you can create a directory link for "Java" and use that link path in your Windchill setup. When a new Java version is installed, you only need to update the link to point to the new java version path.  The link update can be incorporated into your automated java update process.

 

On Linux, lookup symbolic links. On Windows, look up junctions (mklink.exe /? for help).

 

For example, create a link "C:\PTC\Windchill\Java" that points to "C:\Program Files\Java\<your java version>". Use the link path "C:\PTC\Windchill\Java" in all your Windchill settings.

 

Regards,

Dan N.

Thanks  a lot. I think we will create a directory link to use the always the same path for java.

We always use the zip version of Java so we don't run into this issue.

 

Just create your E:\ptc\Java folder, unzip your Java installation into. You dont have to worry about the path changing, the version number, etc. 

 

That way it wont auto update and break stuff. 

Announcements


Top Tags