Debugging in Eclipse

2
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
asked
4 answers
2

Make sure that the JDK from Eclipse matches the JDK of the model preferences.

Regards,

Ronald

[EDIT] 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.

answered
2
  1. Right-click your project and select 'debug as'
  2. Select 'debug configurations'
  3. Select your application from the list of java applications
  4. hit 'debug'

Always does the trick for me :)

answered
0

Have you tried following this tutorial?

https://world.mendix.com/display/refguide6/Using%20Eclipse

answered
0

I am having the same problem. Reinstall the Eclipse J2EE version with the .exe format installation file solved my problem.

answered