Platform build failed with SDK 22.06

Hi,

I am currently trying to build an ESP32 platform on MicroEJ Distribution 22.06 but I have the following error

 [java] BUILD FAILED
 [java] C:\esp32-configuration\build-platform.ant:30: The following error occurred while executing this line:
 [java] C:\Program Files\MicroEJ\MicroEJ-SDK-22.06\rcp\configuration\org.eclipse.osgi\25\0\.cp\resources\microejgenerator\MicroEJGenerator.xml:51: The following error occurred while executing this line:
 [java] microej.commInitializer.check.wip.exist:
 [java] microej.commInitializer.check.wip:
 [java] C:\esp32-configuration\target~\microejRepository\1.6\pp001\build\fragments\ecom-comm\build\build.xml:65: The following error occurred while executing this line:
 [java] C:\esp32-configuration\target~\microejRepository\1.6\pp001\build\fragments\ecom-comm\build\commInitializer.microejTask:20: The following error occurred while executing this line:
 [java] microej.commInitializer.workbenchExtension.exists:
 [java] microej.commInitializer.check.workbenchExtension:
 [java] commInitializer/classpath:
 [java] C:\esp32-configuration\target~\microejRepository\1.6\pp001\build\fragments\ecom-comm\build\commInitializer.microejTask:70: java.lang.ClassFormatError: Class name is empty or contains illegal character in descriptor in class file com/is2t/microej/comm/DcommInitializer/taskDefinition:

What is causing this?

Best regards

Philip

Hi Philip,

This error is probably caused by the use of a JDK 11 and an Architecture 7.16 or older. JDK 11 is only supported on Architecture 7.17.0 and higher as mentioned in this documentation (see “Java Runtime Environment” section).

So you should stick to JDK 8 or upgrade your Architecture.

Hope this helps.
Regards