This normally occurs if you open the Java Actions in an IDE like Eclipse that can auto compile them. You need to turn off this functionality and let Mendix do the compiling when you build your application.
Hi Ritika,
Clean the deployment directory and re run the application once.
Hotfix : App – > clean deployment directory and then Run the app again again
the error Because you are accessing the app from eclipse
Hi,
I see the following error in the stack trace: [javac] class file has wrong version 59.0, should be 55.0
This is coming from approntospotlightsearch and approntolicenser
Obviously means, your java version is behind than the version used to compile that module.
Try to upgrade your java version
How do we upgrade the java version @Nirmalkumar
For any Mendixers have encountered this problem: here is how you can fix your project:
If you haven't committed yet:
-delete the JavaActions folder + update. Then compile and everything should work.
If you have committed:
-create a branch of the last version that still had the proper java files. Copy the JavaActions folder and paste in your project-to-fix. Compile. That should fix the problem.
Maybe someone here could explain how to fix the the class problem in Visual Studio Code in steps: I have tried, but haven't succeeded. I managed to turn off autocompile in VSCode, but I haven't been able to revert to an older java version, then do a recompile.
If you are a MacBook user, and running parallels then do not directly open the project from documents folder. Go to the actual path on your machine where Mendix folder exists and then open your project from there and try to run.
For example: Y:\Documents\Mendix\[PROJECT NAME]