It looks like you’ve opened your project in a Java IDE like Eclipse that tries to automatically compile the code for you. You probably have a higher version of Java installed there than Mendix expects. Mendix currently uses Java 11.
The solution would be to close your IDE, clean the deployment directory in Mendix Studio Pro, and rebuild the application. Studio Pro should recompile the Java files with the correct version and it should work.
Good luck!
Hi Arpita,
Can you check the JDK directory under Edit > Preferences and report back your finding? Should look like this:
Please have a look at the userlibs folder in your project’s root directory and remove outdated jar files. Keep the ones with the highest version number, clean your deployment directory and try again. This usually helps when I have Java compilation errors.
Hi,
i'm getting the above error and these are the error details
C:\Users\Admin\Mendix\FirstDEmo-main_2\javasource\mendixsso\implementation\UserManager.java:39: error: cannot find symbol c.rollbackTransAction(); ^ symbol: method rollbackTransAction() location: variable c of type IContextC:\Users\Admin\Mendix\FirstDEmo-main_2\javasource\mendixsso\implementation\UserManager.java:77: error: cannot find symbol c.rollbackTransAction(); ^ symbol: method rollbackTransAction() location: variable c of type IContextNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: Some input files use unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.2 errors
FAILURE: Build failed with an exception.
* What went wrong:Execution failed for task ':compile'.> Compilation failed; see the compiler error output for details.
* Try:> Run with --stacktrace option to get the stack trace.> Run with --debug option to get more log output.> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
someone please suggest me how can I fix the above error
I would appreciate it if someone could help me with this