completion of java action failed i try to run but that time get errors how to resolve this

0
Buildfile: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\build_core.xml compile:     [javac] Compiling 1 source file to C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin     [javac] C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:10: error: cannot access DecryptString     [javac]     registrator.registerUserAction(encryption.actions.DecryptString.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\DecryptString.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:11: error: cannot access EncryptString     [javac]     registrator.registerUserAction(encryption.actions.EncryptString.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\EncryptString.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:12: error: cannot access GeneratePGPKeyRing     [javac]     registrator.registerUserAction(encryption.actions.GeneratePGPKeyRing.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\GeneratePGPKeyRing.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:13: error: cannot access PGPDecryptDocument     [javac]     registrator.registerUserAction(encryption.actions.PGPDecryptDocument.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\PGPDecryptDocument.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:14: error: cannot access PGPEncryptDocument     [javac]     registrator.registerUserAction(encryption.actions.PGPEncryptDocument.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\PGPEncryptDocument.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:15: error: cannot access ValidatePrivateKeyRing     [javac]     registrator.registerUserAction(encryption.actions.ValidatePrivateKeyRing.class);     [javac]                                                      ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\run\bin\encryption\actions\ValidatePrivateKeyRing.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:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\javasource\system\UserActionsRegistrar.java:16: error: cannot access VerifyPassword     [javac]     registrator.registerUserAction(system.actions.VerifyPassword.class);     [javac]                                                  ^     [javac]   bad class file: C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\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] 7 errors BUILD FAILED C:\Users\dnyaneshwar\Documents\Mendix\AssetManagement2021-main_2\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 5 seconds
asked
2 answers
0

“class file has wrong version 59.0, should be 55.0”

This looks like project has been opened in something like Eclipse, but Eclipse has Java 15 (class 59.0) installed, and it has auto compiled the module. Mendix does not understand Java 15 so is complaining and asking for a Java 11 (class 55.0) version.

The way to fix this to disable auto compile in Eclipse and let Mendix handle the build. 

Hope this helps.

answered
0

Double check your userlib for double .jar files. If so keep the latest and remove the older version of the jar.

Regards,

Ronald

 

answered