Hi Team, For java action, when we made changes to code in the eclipse getting complication error as mentioned below while running the application. can we directly change code from Documents->mendix->application folder by editing it in notepad. compile: [javac] Compiling 1 source file to C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\deployment\run\bin [javac] C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\javasource\system\UserActionsRegistrar.java:10: error: cannot access Java_action [javac] registrator.registerUserAction(myfirstmodule.actions.Java_action.class); [javac] ^ [javac] bad class file: C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\deployment\run\bin\myfirstmodule\actions\Java_action.class [javac] class file has wrong version 59.0, should be 55.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\javasource\system\UserActionsRegistrar.java:11: error: cannot access VerifyPassword [javac] registrator.registerUserAction(system.actions.VerifyPassword.class); [javac] ^ [javac] bad class file: C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\deployment\run\bin\system\actions\VerifyPassword.class [javac] class file has wrong version 59.0, should be 55.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] 2 errors BUILD FAILED C:\UserData\z004a58x\Documents\Mendix\Image_compression_App-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.
asked
Parimala Suram
2 answers
2
Click on Project > Clean deployment directory. This solves the issue for me. The reason for it is, that you use a different java version in eclipse than in mendix.
answered
Andreas Blaesius
0
This looks like you are compiling the Java action outside of Mendix using a different version of Java.
Don’t do this, just let Mendix compile the code itself when you build the application.