Good afternoon, I have imported my project into the workspace in Eclipse. Im trying to run the project in debug mode but keep getting the following error: Error: Could not find or load main class I guess I have to specify the main class but I can not find a reference to com.mendix.m2ee.server.M2EEServer. Can anyone tell me if this is the correct class and if so how to import it? Regards, Matt
Make sure that the JDK from Eclipse matches the JDK of the model preferences.
May be I have misread your question. I have checked the javodocs, and I am not sure what you want to achieve in the Java code. Try to take a look at the documentation here: https://apidocs.mendix.com/6/runtime/
You may be trying to use something that is not available.
Right-click your project and select 'debug as'
Select 'debug configurations'
Select your application from the list of java applications