Unable to build mock project

Hello,

I am trying to build a mock project following this guide : https://github.com/MicroEJ/How-To/tree/master/Mock-Get-Started. In this link, it is said: “Build the Mock project with EasyAnt (right click on the project > build with EasyAnt)” The problem is that I don’t have any “Build with EasyAnt” button. I have tried using Eclipse with the MicroEJ 5.1.2 plugin and MicroEJ SDK dist 20.07.

So, how do you build and export the mock project ?

Have a good day,
Yoann Jézégou, developer at Otodo

Hello Yoann,
Indead, the build button was renamed in MicroEJ 5.x.
The button Build with Easyant is now called Build Module.

We will fix the README of this How-To with the correct name as we apparently missed that part when updating the example from MicroEJ 4 to MicroEJ 5.

Regards,
Florian from MicroEJ.

Hello,

Thanks for your answer. The “Build module” works and I have unzipped the files in the “content” folder from the .rip in my platform configuration project like this:
Configuration project

Then, I have built the platform and launched the Simulator. The problem is that I get the same errors as when having no mock at all. Here are the console logs:
=============== [ Initialization Stage ] ===============
=============== [ Launching on Simulator ] ===============
MicroUI: Unknown error (-1)
Exception in thread “main” java.lang.UnsatisfiedLinkError: No HIL client implementor found (timeout)
at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
at java.lang.Throwable.(Throwable.java:37)
at java.lang.Error.(Error.java:18)
at java.lang.LinkageError.(LinkageError.java:18)
at java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:10)
at ej.microui.MicroUI.initLogger(MicroUI.java:190)
at ej.microui.MicroUI.(MicroUI.java:163)
at com.is2t.microbsp.microui.SystemMicroUI.(SystemMicroUI.java:30)
at com.is2t.microej.microui.SystemMicroUIImpl.(SystemMicroUIImpl.java:14)
at ej.microui.MicroUI.getMicroUIImpl(MicroUI.java:211)
at ej.microui.MicroUI.(MicroUI.java:155)
… [Our code calling MicroUI.start()]

Exception in thread “main” java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
at java.lang.Throwable.(Throwable.java:32)
at java.lang.Exception.(Exception.java:14)
at java.lang.RuntimeException.(RuntimeException.java:14)
at java.lang.NullPointerException.(NullPointerException.java:6)
at ej.microui.MicroUI.start(MicroUI.java:72)
… [Our code calling MicroUI.start()]
Caused by: java.lang.NullPointerException
at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
at java.lang.Throwable.(Throwable.java:32)
at java.lang.Exception.(Exception.java:14)
at java.lang.RuntimeException.(RuntimeException.java:14)
at java.lang.NullPointerException.(NullPointerException.java:6)
at ej.microui.MicroUI.start(MicroUI.java:72)
… [Our code calling MicroUI.start()]
=============== [ Completed Successfully ] ===============

I have tried with the versions 2.4 and 2.3 of the MicroUI module. Do you know what cause these exceptions and how to solve it?

Have a good day,
Yoann Jézégou, developer at Otodo

Hello Yoann,

It seems like the mock of the frontpanel is not present in the generated platform.
What is the platform and the version of the UI Pack you are using ?
Could you send us the folder scripts of your generated platform ?
If you don’t want to share it from the forum you can send it to me by mail at florian.lardy@microej.com

Regards,
Florian.

Hello,

Here is my platform architecture:
Platform architecture

I noticed that I wasn’t using the front panel module in my platform. So I have checked it and followed the migration guide showed in the details of the module to update our old fp project. I have no error in the new fp project, but now when I try to build the platform with the fp module, it fails with the following error:
frontpanel/project/compile:
[javac] C:\Users\otodo\Desktop\workspace microej\1.6\pd002\build\fragments\frontpanel\build\build.xml:161: warning: ‘includeantruntime’ was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to C:\Users\otodo\Desktop\hubapp\Hub_Otodo-fp\classes~
[javac] Unable to load annotation processing manager org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager from classpath.
[javac]

Do you know how to solve this error ?
In case you need it, the platform modules that we use:


Have a good day,
Yoann Jézégou, developer at Otodo

Hello Yoann,
What is the version of Java you are using ?
MicroEJ is compatible with Java 8.
Florian.

Hello,

I am using the JRE 1.8.0_241.

Have a good day,
Yoann Jézégou, developer at Otodo