Error message compiling widgetsets. Vaadin 8 in a Windows 11 PC

Hello,

I have a vaadin 8 project which maven compiles and packages succesfully in a Windows 10 PC.

When I try to do maven install in a new PC (Windows 11) it fails with the next message:

[INFO] — vaadin-maven-plugin:8.10.0:compile (default) @ arq_siasComponentsVaadin —
[INFO] auto discovered modules [VAADIN.widgetsets.SiasWidgetSet]
[INFO] Compiling module VAADIN.widgetsets.SiasWidgetSet
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.RuntimeException: Unexpected error deserializing AST for ‘java.lang.Throwable’

[INFO] Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.jjs.ast.JPrimitiveType
[INFO] at java.lang.Class.forNameImpl(Native Method)
[INFO] at java.lang.Class.forName(Class.java:411)
[INFO] at java.io.ClassCache$FutureValue.get(ClassCache.java:177)

[INFO] at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:369)
[INFO] … 30 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.610 s
[INFO] Finished at: 2024-03-05T12:38:59+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:8.10.0:compile (default) on project vaadinProject: Command [[
[ERROR] 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
[ERROR] ]] failed with status 1
[ERROR] → [Help 1]

Please, does someone know what configuration I miss or what is wrong?

Thanks in advance.

Luis B.
message.txt (6.55 KB)
message.txt (6.55 KB)
message.txt (6.74 KB)
message.txt (6.18 KB)
message.txt (6.18 KB)
message.txt (4.82 KB)

Based on this: C:\Program Files\IBM\WebSphere\AppServer\java\8.0\jre\bin\java you’re using a JRE while you need a JDK

Hello, Olli T,

Thank you for your answer.

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.

Luis B.

Are you running it inside Eclipse? It might be taking the workspace’s default Java (which may be a JRE)

Hello, Olli T.

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.

https://github.com/gwtproject/gwt/issues/9789

OK, thanks a lot. Sorry if I wasted your time. I didn’t find this when I was searching.