java compilation-error

1
In Getting Started Training after the last assignment named Batch translation, when I'm running the app locally it ends in 'Compilations of Java actions failed' These are the error details: Buildfile: C:\Users\Andre\Documents\Mendix\Training Management AL-main\deployment\build_core.xml compile: [javac] Compiling 2 source files to C:\Users\Andre\Documents\Mendix\Training Management AL-main\deployment\run\bin [javac] Note: C:\Users\Andre\Documents\Mendix\Training Management AL-main\javasource\com\mendix\core\Core.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\Andre\Documents\Mendix\Training Management AL-main\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. build: [bnd] # addAll 'deployment/run/bnd.bnd' with , [bnd] Warnings [bnd] Split package, multiple jars provide the same package:com/mendix/core [bnd] Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning [bnd] Package found in [Jar:com.mendix.mxruntime, Jar:run] [bnd] Class path [Jar:biz.aQute.bnd.bndlib, Jar:org.scala-lang.scala-library, Jar:com.mendix.datastorage-api, Jar:com.mendix.json, Jar:com.mendix.logging, Jar:com.mendix.m2ee-api, Jar:com.mendix.mxruntime, Jar:com.mendix.integration, Jar:org.osgi.compendium, Jar:com.mendix.webui, Jar:javax.servlet, Jar:axiom-api-1.2.12, Jar:commons-io-2.3, Jar:commons-lang-2.5, Jar:commons-logging-1.1, Jar:guice-2.0, Jar:openid4java-0.9.8, Jar:org.apache.commons.lang3, Jar:run] [bnd] 1 Errors [bnd] Classes found in the wrong directory: {trainingmanagemental/proxies/DashboardData$MemberNames.class=trainingmanagemental.proxies.DashBoardData$MemberNames, trainingmanagemental/proxies/DashboardData.class=trainingmanagemental.proxies.DashBoardData} [bnd] C:\Users\Andre\Documents\Mendix\Training Management AL-main\deployment\run\bnd.bnd: bnd failed [bnd] at aQute.bnd.ant.BndTask.executeBackwardCompatible(BndTask.java:231) [bnd] at aQute.bnd.ant.BndTask.execute(BndTask.java:115) [bnd] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [bnd] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [bnd] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [bnd] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [bnd] at java.lang.reflect.Method.invoke(Method.java:498) [bnd] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [bnd] at org.apache.tools.ant.Task.perform(Task.java:348) [bnd] at org.apache.tools.ant.Target.execute(Target.java:390) [bnd] at org.apache.tools.ant.Target.performTasks(Target.java:411) [bnd] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) [bnd] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) [bnd] at org.apache.tools.ant.Project.executeTargets(Project.java:1212) [bnd] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) [bnd] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [bnd] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [bnd] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [bnd] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [bnd] at java.lang.reflect.Method.invoke(Method.java:498) [bnd] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [bnd] at org.apache.tools.ant.Task.perform(Task.java:348) [bnd] at org.apache.tools.ant.Target.execute(Target.java:390) [bnd] at org.apache.tools.ant.Target.performTasks(Target.java:411) [bnd] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) [bnd] at org.apache.tools.ant.Project.executeTarget(Project.java:1329) [bnd] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [bnd] at org.apache.tools.ant.Project.executeTargets(Project.java:1212) [bnd] at org.apache.tools.ant.Main.runBuild(Main.java:801) [bnd] at org.apache.tools.ant.Main.startAnt(Main.java:218) [bnd] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [bnd] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) BUILD FAILED C:\Users\Andre\Documents\Mendix\Training Management AL-main\deployment\build_core.xml:46: The following error occurred while executing this line: C:\Users\Andre\Documents\Mendix\Training Management AL-main\deployment\run\bndbuild.xml:9: Failed to build jar file: Total time: 5 seconds
asked
2 answers
2

Choose Menu Project/Clean Deployment Directory and run again.

answered
0

It works. Thanx, Chris.

answered