User hits similar to below errors when trying to create a JVM in tcserver version 10.1.x (pointed to Java 11) as described in the official docs.
The version of Java pointed to by the JAVA_HOME variable is unsupported. Please use at least version 11.
'create' command requires a JVM version of 8 or newer.
tc-Server 10.1.x
A bug in tc-Server v10.1 Specifically, dependencies changed the target Java version from 8 to 17.
Work-around(s):
1.) Disable the configuration repository for that instance when it is created (not ideal, but it doesn't require an additional JVM)
tc-server-10.1 create example --tcs-prop tcserver.configuration.repository=false
2.) Use Java 17 to run the create command and target Java 11 for the instance. This does require installing and setting JAVA_HOME to a Java 17 JVM first. :
tc-server-10.1 create example --tcs-prop java.home=$JAVA11_HOME
*Note: In the above JAVA11_HOME should point to a Java 11 JDK.
-------------------
Permanent Solution:
This issue will be fixed/patched in the next round of tc Server releases. This KB article will be updated once the releases are available. Subscribe to this KB article for live updates.
Tip: Ensure to gather all the necessary logs to properly debug tc-Server issues by utilizing the below KB article: