Compilation of Java actions failed

0
Hi everyone, I receive always this warning “Compilation of Java actions failed” when I try to run the project in edit studio pro. Does anyone know how to fix it? I’m working on an important project and I will be very thankful if someone can help me solve this problem! My Mendix Studio version is 9.10.1 Thanks in advance! Nikolay
asked
3 answers
0

So, are you saying that you only have this problem when running your application in Studio Pro, and running it in Studio works fine?

My pavlov reaction is like Robert says: inspect the detailed errormessage.

If that detailed errormessage makes no sense, i tend to dive into the projectdirectory/userlib and start removing duplicate .jar-files, only keeping the one having the highest version number. This often solves my problem.

answered
0

I got this error message when I didn't disable the compiler in e.g. Visual Studio Code or Eclipse if it referenced another compiler, e.g. one with a higher version. 

If you haven't done any commits yet, you can solve it by deleting the userlib and deployment directories, then press update in the version control menu in Studio Pro. You will get back the old java files, uncompiled by your IDE, and then it might work. Alternatively, create a branch of the last commit that worked, and get the files from there. Make sure to use SVN to override the changes. 

Obviously, if you wrote custom code, first store that somewhere. Plus, disable autocompile from VSC. ;-) 

 

Hope this helps.

answered
0

It looks like you have duplicates of the modules in your javasource folder in the project. Have you created a backup and renamed the folder but not the contents of the files inside?

answered