Could not find com.microej.tool.WorkbenchKeystoreSynchronizer

I am working through building a platform, platform creation, and I’ve run into a eval license issue. When building with the Eclipse based MicroEJ SDK, I get the following error:

module-license:eval:
[java] Could not find com.microej.tool.WorkbenchKeystoreSynchronizer. Make sure you have it in your classpath
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:140)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:834)

Any ideas here? What classpath setting is the error referring to?

Thanks.

Hello @gmletzko,

Could you send me the full trace of the platform build?

Regards,
Alexis

Hi @alexis.pineau,

Here’s the full build output:

[easyant-configure-easyant] :: Apache Ivy 2.5.8-local-20201027214236 - 20201027214236 :: http://ant.apache.org/ivy/ ::
[easyant-configure-easyant] :: loading settings :: file = C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\11\data\repositories\microej-build-repository\ivysettings.xml
Loading System Plugins...
[easyant-load-module] Loading override build file : C:\Users\gmletzko\src\scratch\micro-ej\module.ant
[easyant-load-module] Loading build module : C:\Users\gmletzko\src\scratch\micro-ej\module.ivy
     [echo] Building com.mycompany Platform with com.is2t.easyant.buildtypes#build-custom...
[easyant-load-module] Loading build file : C:\Users\gmletzko\src\scratch\micro-ej\module.ant
[easyant-load-module] :: loading settings :: file = C:\Users\gmletzko\.microej\microej-ivysettings-5.4.xml

clean-std:clean:
     [echo] Cleaning C:\Users\gmletzko\src\scratch\micro-ej/target~...
   [delete] Deleting directory C:\Users\gmletzko\src\scratch\micro-ej\target~

-ivy-provisioning:resolve:
[ivy:resolve] Configure microej module manager semantic cache for microEJForgeCentral resolver.
[ivy:resolve] Configure microej module manager semantic cache for microEJForgeDeveloper resolver.
[ivy:resolve] Configure microej module manager semantic cache for microEJCentral resolver.
[ivy:resolve] Configure microej module manager semantic cache for microEJLocal resolver.
[check-available-confs] Try default
[check-available-confs] Try test
[check-available-confs] Try provided

-ivy-provisioning:resolve-main-confs:
Topological sort auto enabled : true

-ivy-provisioning:resolve-provided-confs:
Topological sort auto enabled : true

ivy-retrieve:retrieve:
[ivy:retrieve] :: retrieving :: com.mycompany#Platform [sync]
[ivy:retrieve] 	confs: [embedded, default]
[ivy:retrieve] 	1 artifacts copied, 0 already retrieved (32145kB/53ms)

artifact-revision:get-revision:
     [echo] Platform exact revision is 0.1.0-RC202303311133.

build-custom:init:
    [mkdir] Created dir: C:\Users\gmletzko\src\scratch\micro-ej\target~\artifacts

module-dropins:pca:
     [copy] Copying 11 files to C:\Users\gmletzko\src\scratch\micro-ej\dropins

module-license:eval:
     [java] Could not find com.microej.tool.WorkbenchKeystoreSynchronizer. Make sure you have it in your classpath
     [java] 	at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:140)
     [java] 	at org.apache.tools.ant.taskdefs.Java.run(Java.java:834)
     [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:228)
     [java] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137)
     [java] 	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
     [java] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
     [java] 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
     [java] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java] 	at org.apache.tools.ant.Task.perform(Task.java:348)
     [java] 	at org.apache.tools.ant.Target.execute(Target.java:435)
     [java] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
     [java] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
     [java] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
     [java] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
     [java] 	at org.apache.easyant.core.EasyAntEngine.doBuild(EasyAntEngine.java:618)
     [java] 	at org.apache.easyant.core.EasyAntMain.runBuild(EasyAntMain.java:476)
     [java] 	at org.apache.easyant.core.EasyAntMain.startAnt(EasyAntMain.java:175)
     [java] 	at org.apache.easyant.core.EasyAntMain.start(EasyAntMain.java:129)
     [java] 	at org.apache.easyant.core.EasyAntMain.main(EasyAntMain.java:225)
     [java] Java Result: -1

module-platform:build:
     [echo] eclipse-antRunner.eclipse.home.root = Z:/build/MicroEJ/ECLIPSE
     [echo] eclipse-antRunner.eclipse.home = C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp
     [echo] To optimize your local build you can copy on a local disk the directory C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp and set a property 'eclipse-antRunner.eclipse.home' ('easyant.inject.eclipse-antRunner.eclipse.home' when using easyant-build-component) that references the local copy.
     [java] Buildfile: C:\Users\gmletzko\src\scratch\micro-ej\build\module\module-platform\eclipseantrunner.ant
     [java] module-platform:eclipseantrunner:repository:
     [java]      [echo] [LOG] Importing XPFs and XPFPs from C:\Users\gmletzko\src\scratch\micro-ej\target~\dependencies
     [java] module-platform:eclipseantrunner:build:
     [java]      [echo] [LOG] Build C:\Users\gmletzko\src\scratch\micro-ej/default.platform in LOCAL
     [java]      [echo] buildLabel=20230331-1133
     [java]      [copy] Copying 1 file to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts
     [java] microej/environment:
     [java] microej/scripts:
     [java]      [copy] Copying 3 files to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts
     [java]      [xslt] Processing C:\Users\gmletzko\src\scratch\micro-ej\default.platform to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts\jpf.properties
     [java]      [xslt] Loading stylesheet C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\28\0\.cp\resources\microejgenerator\stylesheets\jpfProperties.xsl
     [java]      [xslt] Processing C:\Users\gmletzko\src\scratch\micro-ej\default.platform to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts\xpf.properties
     [java]      [xslt] Loading stylesheet C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\28\0\.cp\resources\microejgenerator\stylesheets\xpfProperties.xsl
     [java]      [xslt] Processing C:\Users\gmletzko\src\scratch\micro-ej\default.platform to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts\generateGroups.xml
     [java]      [xslt] Loading stylesheet C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\28\0\.cp\resources\microejgenerator\stylesheets\groups.xsl
     [java]      [xslt] Processing C:\Users\gmletzko\src\scratch\micro-ej\default.platform to C:\Users\gmletzko\src\scratch\micro-ej\target~\scripts\without.properties
     [java]      [xslt] Loading stylesheet C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\28\0\.cp\resources\microejgenerator\stylesheets\withoutFragments.xsl
     [java] groups:
     [java] microej/platform:
     [java] platform/creation:
     [java] bsp/init:
     [java] device/mock/defaultArchitecture/check:
     [java] frontpanelAutoConfiguration/project/init:
     [java] mjvm/initialization:
     [java] platform/initialization:
     [java] platform/installation:
     [java] architecture/copySourceProperties:
     [java]      [copy] Copying 1 file to C:\Users\gmletzko\src\scratch\platformtmp\source
     [java] bsp/workbenchExtension:
     [java] [propertyfile] Creating new property file: C:\Users\gmletzko\src\scratch\platformtmp\source\scripts\deployInBSP.properties
     [java]       [jar] Updating jar: C:\Users\gmletzko\src\scratch\platformtmp\source\workbenchExtension_launchScriptFramework.jar
     [java] device/mock/defaultArchitecture:
     [java] examples/install/check:
     [java] examples/install:
     [java] external-resource-loader-stub/install/check:
     [java] external-resource-loader-c/install:
     [java]      [copy] Copying 1 file to C:\Users\gmletzko\src\scratch\platformtmp\source
     [java] mjvm/configuration/customization:
     [java]      [copy] Copying 53 files to C:\Users\gmletzko\src\scratch\platformtmp\source
     [java] mjvm/sni/customization:
     [java] platform-kf:include:
     [java]      [copy] Copying 2 files to C:\Users\gmletzko\src\scratch\platformtmp\source
     [java] platform/customization:
     [java] platform/dropins:
     [java]      [copy] Copying 11 files to C:\Users\gmletzko\src\scratch\platformtmp\source
     [java] wip/gatherIncludes:
     [java]      [move] Moving 15 files to C:\Users\gmletzko\src\scratch\platformtmp\source\include
     [java] wip/gatherLibraries:
     [java]      [move] Moving 5 files to C:\Users\gmletzko\src\scratch\platformtmp\source\lib
     [java]      [move] Moving 8 files to C:\Users\gmletzko\src\scratch\platformtmp\source\MICROJVM\lib
     [java] wip/mergeLibraries/check:
     [java] wip/mergeLibraries:
     [java] microej.mergeArchive.intern:
     [java]     [mkdir] Created dir: C:\Users\gmletzko\AppData\Local\Temp\ar1026098755
     [java] microej.createArchive.intern/check:
     [java] microej.createArchive.intern:
     [java]     [apply] C:\Users\gmletzko\src\scratch\micro-ej\target~\microejRepository\1.6\pe001\build\tools\os\Windows\ar: creating C:\Users\gmletzko\src\scratch\platformtmp\source/lib/microejruntime.a
     [java]    [delete] Deleting directory C:\Users\gmletzko\AppData\Local\Temp\ar1026098755
     [java] bsp/lib:
     [java] bsp/include:
     [java] mjvm/finalization:
     [java] [propertyfile] Creating new property file: C:\Users\gmletzko\src\scratch\platformtmp\source\scripts\mjvm.properties
     [java] platform-deploy:deployInBSP:init:
     [java] [propertyfile] Updating property file: C:\Users\gmletzko\src\scratch\platformtmp\source\scripts\deployInBSP.properties
     [java] platform-deploy:deployInBSP:app:
     [java] platform-deploy:deployInBSP:lib:
     [java] platform-deploy:deployInBSP:inc:
     [java] platform-deploy:deployInBSP:script:
     [java] platform-deploy:deployInBSP:root:
     [java] platform-deploy:deployInBSP:
     [java] platform-deploy:workbenchExtension:augment:
     [java]       [jar] error while reading original manifest in file: C:\Users\gmletzko\src\scratch\platformtmp\source\workbenchExtension_launchScriptFramework.jar due to error in opening zip file
     [java] BUILD FAILED
     [java] C:\Users\gmletzko\src\scratch\micro-ej\build\module\module-platform\eclipseantrunner.ant:37: The following error occurred while executing this line:
     [java] C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\28\0\.cp\resources\microejgenerator\MicroEJGenerator.xml:51: The following error occurred while executing this line:
     [java] C:\Users\gmletzko\src\scratch\micro-ej\build\platform\platform-deploy.ant:18: Problem reading C:\Users\gmletzko\src\scratch\platformtmp\source\workbenchExtension_launchScriptFramework.jar
     [java] Total time: 10 seconds
     [java] An error has occurred. See the log file
     [java] C:\Users\gmletzko\src\scratch\micro-ej\target~\workspace226722918~\.metadata\.log.

BUILD FAILED
Found an error when building Platform
* Where

File : C:\Users\gmletzko\src\scratch\micro-ej\build\module\module-platform.ant
Line : 201 column : 24

* Problem Report:

The following error occurred while executing this line:
C:\Program Files\MicroEJ\MicroEJ-SDK-21.11\rcp\configuration\org.eclipse.osgi\11\data\repositories\microej-build-repository\com\is2t\easyant\plugins\eclipse-antRunner\1.1.1\eclipse-antRunner-1.1.1.ant:73: Java returned: 13


* Recommendation...

Run easyant with -verbose or -debug option to get more details.

Total time: 14 seconds

Hi @gmletzko ,

It seems there are missing files in your project. Can you check that the file source/tools/license-checker.jar exists?
Also can you run the build in verbose mode and send the logs please?

Regards

Hi tdelhomenie,

I checked that the file \micro-ej\build\module\module-dropins\tools\license-checker.jar does exist.

I built with verbose output, as you suggested, and that is attached.
build_output.txt (770.1 KB)

Thanks

Hi @gmletzko ,

I also see the following (unexpected) line:

     [java]       [jar] error while reading original manifest in file: C:\Users\gmletzko\src\scratch\platformtmp\source\workbenchExtension_launchScriptFramework.jar due to error in opening zip file

There is definitely something weird on your environment.
Can you please contact the support team (Get Support — MicroEJ Documentation), so that we can arrange a debug session together ?

–Frédéric