Java action not found

0
Imported a project from one laptop to another. Compilation of Java actions failed. Viewed errors before proceeding (to get errors also logged into console): see buildfile below. Error message in console like: Action 'Courses.JTwoObjects' not found! (log node "Action Manager", no stack trace". Apart from microflows using Java calls application runs normally. Java-src files seem to be normally present in designated folder. Can anybody help me? Buildfile: C:\Users\Public\Documents\MxProjecten\MxTPCursus\deployment\build.xml compile:[javac] Compiling 54 source files to C:\Users\Public\Documents\MxProjecten\MxTPCursus\deployment\model\lib\bin[javac] C:\Users\Public\Documents\MxProjecten\MxTPCursus\javasource\courses\actions\helpers\Converter.java:8: class, interface, or enum expected [javac] try { [javac] ^ [javac] C:\Users\Public\Documents\MxProjecten\MxTPCursus\javasource\courses\actions\helpers\Converter.java:12: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\Users\Public\Documents\MxProjecten\MxTPCursus\javasource\modulex\actions\AddresssetWholeAddress.java:56: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\Users\Public\Documents\MxProjecten\MxTPCursus\javasource\modulex\actions\AddresssetWholeAddress.java:62: class, interface, or enum expected [javac] public String toString() [javac] ^ [javac] C:\Users\Public\Documents\MxProjecten\MxTPCursus\javasource\modulex\actions\Addressset_WholeAddress.java:65: class, interface, or enum expected [javac] } [javac] ^ [javac] 5 errors BUILD FAILED C:\Users\Public\Documents\MxProjecten\MxTP_Cursus\deployment\build.xml:71: Compile failed; see the compiler error output for details.
asked
2 answers
1

<projectname>.mpk-files do not contain the java-files, present in the OLD eclipse workspace. Upon deployment new java-files (without BEGIN/END USER CODE filled in) are created. The solution is simple: overwrite those files with those from the old eclipse workspace.

answered
0

Did you check the java source files on both systems? It could be that on the new system a new source file was generated but with empty user code. Copy again the javasource files to the new destination.

answered