Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Cannot confirm the version of Java #4644

MFalkner ·

It's not the first time I've seen this:
I've noticed that an agent was down and looked at the service, it was not running.
After starting the service again (2025-06-12 17:26:31), everything was fine.
However, looking at the console log I've seen the following entries:

jvm 1    | 2025-06-11 16:14:50,389 INFO  QuickBuild agent stopped.
wrapper  | <-- Wrapper Stopped
wrapper  | --> Wrapper Started as Service
wrapper  | Java Service Wrapper Standard Edition 64-bit 3.5.49
wrapper  |   Copyright (C) 1999-2022 Tanuki Software, Ltd. All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.com
wrapper  |   Licensed to PMEase for QuickBuild
wrapper  | 
wrapper  | Child process: Java version: timed out
wrapper  | Failed to parse the version of Java. Resolving to the lowest supported version (1.4).
wrapper  |   Please set wrapper.java.version.output to TRUE, relaunch the Wrapper to print out the Java version output, and send the log file to [email protected].
wrapper  | Cannot confirm the version of Java. Usage of wrapper.java.version.min
wrapper  |   and wrapper.java.version.max will prevent the Wrapper from continuing.
wrapper  | <-- Wrapper Stopped
wrapper  | --> Wrapper Started as Service
wrapper  | Java Service Wrapper Standard Edition 64-bit 3.5.49
wrapper  |   Copyright (C) 1999-2022 Tanuki Software, Ltd. All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.com
wrapper  |   Licensed to PMEase for QuickBuild
wrapper  | 
wrapper  | Launching a JVM...
jvm 1    | WrapperManager: Initializing...
jvm 1    | 2025-06-12 17:26:31,924 INFO  Cleaning cached plugin libraries...

I'm running jre-21.0.6.7-hotspot on my Windows 10 machines.
What could be the reason for this and how to fix?

Thanks, Martin

  • replies 5
  • views 64
  • stars 0
robinshen ADMIN ·

The version "jre-21.0.6.7-hotspot" seems odd (not following the normal major-minor-patch convention used by JDK/JRE), and JSW library used by QB is not able to recognize it. I just installed latest Java 21 sdk from Oracle, and the version is printed as "java version "21.0.7" 2025-04-15 LTS", and QB agent can recognize it without any issues.

Please upgrade your JDK to this version if possible.

MFalkner ·

Unfortunately, I'm not allowed to use the Oracle version.
The version reported is:

java --version
openjdk 21.0.6 2025-01-21 LTS
OpenJDK Runtime Environment Temurin-21.0.6+7 (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.6+7 (build 21.0.6+7-LTS, mixed mode, sharing)

I can update to 21.0.7 if needed but I do not think this will change anything.
Would the above be a problem?

robinshen ADMIN ·

I installed OpenJDK distribution 21.0.7 from Microsoft and it also works at my side:
https://aka.ms/download-jdk/microsoft-jdk-21.0.7-windows-x64.msi

This is "java -version" output at my side:

openjdk version "21.0.7" 2025-04-15 LTS
OpenJDK Runtime Environment Microsoft-11369940 (build 21.0.7+6-LTS)
OpenJDK 64-Bit Server VM Microsoft-11369940 (build 21.0.7+6-LTS, mixed mode, sharing)

MFalkner ·

I do not see and difference in the output except the version number and distribution name.
MS does not provide a 32-bit version, I need for some of the agents, therefore we switched to Adoptium Temurin.

I'll set wrapper.java.version.output to TRUE on some agents, as suggested in the output.
Maybe we will get a hint of the cause from this.

Thanks, Martin

robinshen ADMIN ·

Just installed Adoptium openjdk 21.0.7 and it also works. Please make sure that property "wrapper.java.command" in file "wrapper.conf" points to correct jdk.