Skip to main content
12-Amethyst
August 7, 2023
Solved

PTC Solution Installer stays blocked

  • August 7, 2023
  • 4 replies
  • 4428 views

Hello, I downloaded the PTC Solution Installer for Windchill 13. I'm running the installer on Linux CentOS 9 Stream + Java 17, for somewhat reason, the installer gets blocked on the first step: 

"Please wait, PTCSolnInstaller is being configured for your system. This may take a moment"

Stays like that until I close it. 

When I go to the /tmp directory I see that the installer creates a install.dir folder. Inside the temp.lax file I see a message:

"The installer either could not find a Java VM, or the Java VM on this system is too old. The installer requires Java 1.1.5 or later. It can be downloaded from -java.sun.com/products/jdk/1.1/jre/".

The strange thing is I have Java already installed. Any idea why it cannot find the JVM or it's something else?

 

 

Best answer by NT_10644494

@RandyJones 

@avillanueva 

The problem was (In my case) that I was using CentOS 9 stream. Tried with new machine with CentOS 8 installed and It worked. 

4 replies

avillanueva
23-Emerald I
23-Emerald I
August 7, 2023

Ensure it can find your install of Java:

JAVA_HOME=/pdmlink/ptc/Java;export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH;export PATH

Set the environment variable before running to where ever its installed.

12-Amethyst
August 8, 2023

@avillanueva 

 

Thanks for your response. Still the same error

changed JAVA_HOME to the absolute path which readlink -f $(which java) gives me, also the PATH variable

then changed LAX_VM to /usr/bin/java, but still the same message in the installation directory which is being created in the /tmp folder.

 

I'm not sure if it can be from how I install Java, because I just do "sudo yum install java-17-openjdk*" and many folders are being generated in /usr/lib/jvm/ . The full path which I'm using for JAVA_HOME is pointing to java-17-openjdk-17.0.6.0.10-3.el9.x86_64. For the PATH I set $JAVA_HOME/bin.

20-Turquoise
August 7, 2023

Also make sure the environment you are running the installer can see java and which version it is:

which java

java -version

 

12-Amethyst
August 8, 2023

which java is giving me /usr/bin/java, but for JAVA_HOME i give the absolute path which i get from readlink -f $(which java)
java -version is just saying Openjdk Red_Hat-17.0.6.0.10-3.el9.
I explained more in the first response of the topic

20-Turquoise
August 8, 2023

PTC does not officially support Openjdk. Does not mean it won't work - I haven't tried it myself. They do support Amazon Corretto which is what I use. Simply download Amazon Corretto 17.0.7 .gz format and extract it and set your path to that. Note Amazon Corretto 17.0.8 will not work: Amazon Corretto 11.0.20 and 17.0.8 warnings 

 

The following is what I do for Windchill 12.1.2 java:

[randy@lin02 Windchill]$ pwd
/opt/ptc/Windchill
[randy@lin02 Windchill]$ ls -ld Java* amazon*
drwxr-xr-x. 9 root root 16 Jan 10 2023 amazon-corretto-11.0.18.10.1-linux-x64
drwxr-xr-x. 9 root root 16 Apr 13 17:31 amazon-corretto-11.0.19.7.1-linux-x64
drwxr-xr-x. 7 1001 geoclue 14 Jan 13 2023 amazon-corretto-8.362.08.1-linux-x64
drwxr-xr-x. 7 1001 geoclue 14 Apr 17 17:46 amazon-corretto-8.372.07.1-linux-x64
lrwxrwxrwx. 1 root root 37 May 3 18:51 Java -> amazon-corretto-11.0.19.7.1-linux-x64
lrwxrwxrwx. 1 root root 36 May 3 18:51 Java8 -> amazon-corretto-8.372.07.1-linux-x64
[randy@lin02 Windchill]$

 Then set your path to include /opt/ptc/Windchill/Java at the front of it. Using the Java symlink makes it trivial to switch java versions.

 

One other trick I do to work around /tmp directory permission/size limitation surprises is to remove/create a /opt/ptc/Windchill/tmp_install directory every time before running the installer:

\rm -r /opt/ptc/Windchill/tmp_install
mkdir /opt/ptc/Windchill/tmp_install
chmod 777 /opt/ptc/Windchill/tmp_install
export IATEMPDIR=/opt/ptc/Windchill/tmp_install

/software/ptc/wc/12.1/12.1.2/stage.cps.12.1.2.1/ptc_solution_installer_12.1.2.1/setup

 

23-Emerald III
August 7, 2023

You also need LAX_VM pointing to your Java install.

NT_1064449412-AmethystAuthorAnswer
12-Amethyst
September 1, 2023

@RandyJones 

@avillanueva 

The problem was (In my case) that I was using CentOS 9 stream. Tried with new machine with CentOS 8 installed and It worked. 

20-Turquoise
September 1, 2023

@NT_10644494 wrote:

@RandyJones 

@avillanueva 

The problem was (In my case) that I was using CentOS 9 stream. Tried with new machine with CentOS 8 installed and It worked. 


Interesting. I would expect CentOS 9 to also work especially since PTC supports RHEL 9.0 for Windchill 13.