Is it possible to perform a command line install of the MicroEJ SDK?
I am trying to install MicroEJ-SDK-Installer-Linux64-19.05.sh on one of my headless build nodes and get the pollowing output:
$ java -jar install.jar
Oct 22, 2020 12:06:50 PM INFO: Logging initialized at level ‘INFO’
Oct 22, 2020 12:06:50 PM INFO: Commandline arguments:
Oct 22, 2020 12:06:51 PM INFO: Detected platform: ubuntu_linux,version=4.4.0-112-generic,arch=x64,symbolicName=null,javaVersion=1.8.0_265
Oct 22, 2020 12:06:51 PM WARNING: No console implementation of panel: com.is2t.izpack.panels.java.CheckVirtualMachinePanel
Oct 22, 2020 12:06:51 PM WARNING: No console implementation of panel: com.is2t.izpack.panels.java.JREPathPanel
Oct 22, 2020 12:06:51 PM WARNING: No console implementation of panel: com.is2t.izpack.panels.licence.UTF8LicencePanel
Console installation is not supported by this installer
[ Console installation FAILED! ]
Hi Andy,
Unfortunately you cannot install the MicroEJ SDK on a headless machine.
May I ask want do you want to do with a MicroEJ SDK on your headless machine.
Would you use it to develop some projects ?
or simply to build some projects ?
This would be purely to build projects (both the VEE kernel and applications based on existing platform architectures) from source control for our different products.
Developers would be developing using the GUI version of MicroEJ SDK on Linux but would likely leverage some of the same scripted builds to allow for integration into the larger firmware project.
Hi Andy,
Thanks for your response, we have some documentation of how you can build project using the command line, but this documentation is windows oriented,
I’ll update it in order for working on Gnu/Linux and I’ll send it to you.
Regards
I’m still having a few issues getting the command line build of a standalone app project (Hello world from Java) to work.
I am attempting a personal build with the following command: swgroup@fwdev2-astamp:~/ES2/mej_temp/command_line_build_tools$ MICROEJ_BUILD_JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ./build_module_local.sh ~/.microej/workspaces/MicroEJ-SDK-Dist-20.07/krnl386/ personal test2.properties
I have created test2.properties to contain the path to the built platform directory: platform-loader.target.platform.dir=/home/swgroup/.microej/workspaces/MicroEJ-SDK-Dist-20.07/imx6ull-minimal-GNUv54_cortexa7_QNXv7-1.0.0
The build ends with the following messages:
BUILD FAILED
/home/swgroup/ES2/mej_temp/command_line_build_tools/easyant/build-module.ant:39: The following error occurred while executing this line:
/home/swgroup/ES2/mej_temp/command_line_build_tools/easyant/easyant-configuration.ant:224: The following error occurred while executing this line:
/home/swgroup/.ivy2/cache/com.is2t.easyant.plugins/platform-launcher/ants/platform-launcher-3.7.1.ant:248: Source resource does not exist: /home/swgroup/.microej/workspaces/MicroEJ-SDK-Dist-20.07/krnl386/target~/player/platform/scripts/workbenchExtension.properties
Total time: 3 seconds
Looking at the folder layout in the Package Explorer it appears that the scripts folder containing workbenchExtension.properties is located unider player/platform/source instead of directly under player/platform.
The complete output of the command stdout+stderr can be found here: output.txt (10.2 KB)
Additionally is there a way to build the platform using this same mechanism? I’m looking to get all of the sources into version control so everything can be built cleanly using the SDK.
That helped and I’m getting further now. It’s now dying with the following output:
[java] Buildfile: /home/swgroup/.ivy2/cache/com.is2t.easyant.plugins/platform-launcher/xmls/launch-3.7.1.xml
[java]
[java] init:
[java]
[java] launch:
[java]
[java] BUILD FAILED
[java] /home/swgroup/.ivy2/cache/com.is2t.easyant.plugins/platform-launcher/xmls/launch-3.7.1.xml:25: The following error occurred while executing this line:
[java] java.io.FileNotFoundException: /home/swgroup/.microej/workspaces/MicroEJ-SDK-Dist-20.07/krnl386/target~/player/platform/scripts/fullLink.microejLaunch (No such file or directory)
Full output can be found here: output2.txt (21.1 KB)
I’m not sure how to determine which type of platform I am using. This platform was created as a blank MicroEJ platform using the architecture files supplied for our OS/CPU combination.
When I did my initial testing in the SDK I built the platform in the MicroEJ SDK using the “Build Platform” link.
I then created a MicroEJ Standalone Application project. Building this (Run As → MicroEJ Application) generates micrejapp.o and icetea_linter_support.s.
These files are then linked into our QNX application which starts the MicroJVM.
The only module.ivy file I have is from the application attached here: module.ivy.txt (2.2 KB)
The platform configuration file can be found here: minimal.platform.txt (538 Bytes)
Hi Andy,
Can you add he standalone xpfp pack into your architecture
You should go to Window > Preferences > MicroEJ > Architectures
Select your architecture.
On the right menu, click on Import and browse the standalone.xpfp file.
Click on Apply and Close
The standalone pack will extend the architecture by adding all the needed files for producing the final executable, among other things it’ll add the fullLink.microejLaunch file.