Thank you Pierre.
The ant build gives during the execution of the testscases:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_231\lib\tools.jar
Buildfile: D:\App\MicroEJ-Studio\rcp\configuration\org.eclipse.osgi\457\data\repositories\microej-build-repository\com\is2t\easyant\plugins\microej-testsuite\3.3.2\microej-testsuite-harness-s3-3.3.2.xml
traceAnalyzer/definition:
runTest:
[mkdir] Created dir: I:\Projets\ ... \target~\test\xml\test\20200427-1431-17\com.....wa.domain._SingleTest_RestManagerTest_testUpdateTime\null294835513
activity/microej:
[echo] =============== [ Initialization Stage ] ===============
check/OS/job:
isWinXP:
check/OS:
target/define:
platform/constants:
init/vd/embeded-applications:
BUILD FAILED
D:\App\MicroEJ-Studio\rcp\configuration\org.eclipse.osgi\457\data\repositories\microej-build-repository\com\is2t\easyant\plugins\microej-testsuite\3.3.2\microej-testsuite-harness-s3-3.3.2.xml:33: The following error occurred while executing this line:
I:\Projets.…wa\target~\platform\scripts\init-vd\vd-init.xml:11: java.lang.RuntimeException: java.nio.file.NoSuchFileException: I:\Projets.…wa\target~\test\xml\test\20200427-1431-17\bin\META-INF\MANIFEST.MF
*at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:397)
*at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
*at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
*at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
*at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
*at javax.script.AbstractScriptEngine.eval(Unknown Source)
*at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
*at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
*at java.lang.reflect.Method.invoke(Unknown Source)
*at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:109)
*at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
*at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
*at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
*at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
*at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
*at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
*at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
*at java.lang.reflect.Method.invoke(Unknown Source)
*at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
*at org.apache.tools.ant.Task.perform(Task.java:348)
*at org.apache.tools.ant.Target.execute(Target.java:435)
*at org.apache.tools.ant.Target.performTasks(Target.java:456)
*at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
*at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
*at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
*at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
*at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
*at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
*at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
*at java.lang.reflect.Method.invoke(Unknown Source)
*at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
*at org.apache.tools.ant.Task.perform(Task.java:348)
*at org.apache.tools.ant.Target.execute(Target.java:435)
*at org.apache.tools.ant.Target.performTasks(Target.java:456)
*at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
*at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
*at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
*at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
*at org.apache.tools.ant.Main.runBuild(Main.java:857)
*at org.apache.tools.ant.Main.startAnt(Main.java:236)
*at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
*at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: java.nio.file.NoSuchFileException: I:\Projets…wa\target~\test\xml\test\20200427-1431-17\bin\META-INF\MANIFEST.MF
*at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
*at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
*at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
*at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
*at java.nio.file.Files.newByteChannel(Unknown Source)
*at java.nio.file.Files.newByteChannel(Unknown Source)
*at java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
*at java.nio.file.Files.newInputStream(Unknown Source)
*at jdk.nashorn.internal.scripts.Script$^eval_.:program(:4)
*at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
*at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
*at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
*… 43 more
Total time: 3 seconds
Then when I select a Testcase in src-adpgenerated/junit/java in Eclipse, right click and select debug as MicroEJ Application it starts the emulator and runs my application but not the JUnit Testcase
Thanks for your help !
Kind regards,
Stéphane