compile error for openmrs platform

openmrs platform

Question: I get this error when i try to compile the openmrs platform Error: Could not find or load main class Xmx1024m

:slightly_smiling_face:
Can you please paste the full error log in pastebin :pleading_face:

I run mvn -X comand and thats the error i still get from the log

favor@CFL-SUB-LAP-001:~/openmrscall4life/openmrs-core$ mvn -X Error: Could not find or load main class Xmx1024m

This usually happens when you are using a JRE instead of JDK to compile.

What does this command return? mvn -v

1 Like

I am a new developer to OpenMRS but maybe I can help. I definitely had trouble compiling the project for a while. I am using the sdk that is provided. I compile the platform with the following commands: mvn openmrs-sdk: run.

If that was confusing I have notes that I am happy to share!