My environment variables:
JAVA_HOME=C:\Program Files\IBM\WebSphere\AppServer\java\8.0
path= …; C:\Program Files\IBM\WebSphere\AppServer\java\8.0\bin; …
both are the same in Windows 11 PC and Windows 10 PC
the command “C:\Program Files\IBM\WebSphere\AppServer\java\8.0\jre\bin\java -Xmx1G -Dgwt.jjs.javaArgs=-Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war c:[…]\vaadinProject\target\classes\VAADIN\widgetsets -localWorkers 12 -failOnError -XfragmentCount -1 -sourceLevel auto -gen c:[…]\vaadinProject\target.generated VAADIN.widgetsets.SiasWidgetSet” is executed by the vaadin-maven-plugin.
No, I’m running “mvn clean install” from the windows command line (cmd)
In the windows 10 PC I have the ibm jdk version:
java version “1.8.0_351”
Java™ SE Runtime Environment (build 8.0.7.20 - pwa6480sr7fp20-20221020_01(SR7 FP20))
IBM J9 VM (build 2.9, JRE 1.8.0 Windows 10 amd64-64-Bit Compressed References 20220929_37824 (JIT enabled, AOT enabled)
OpenJ9 - 02180fe
OMR - 48fc32a
IBM - bf759bf)
JCL - 20220922_01 based on Oracle jdk8u351-b10
In the windows 11 PC the version of the ibm jdk is:
java version “1.8.0_401”
Java™ SE Runtime Environment (build 8.0.8.20 - pwa6480sr8fp20-20240112_01(SR8 FP20))
IBM J9 VM (build 2.9, JRE 1.8.0 Windows 11 amd64-64-Bit Compressed References 20231219_62619 (JIT enabled, AOT enabled)
OpenJ9 - 08d2144
OMR - 7a5005b
IBM - 7394519)
JCL - 20231221_01 based on Oracle jdk8u401-b10
If in the windows 11 machine I execute the “mvn clean install” with the jdk that I have on the windows 10, the compilation works properly
It is clear that the difference is in the versions of IBM’s jdk 8, I have no idea what’s wrong.