New Synch Module compile errors

@raff I just cloned and tired building this module locally https://github.com/openmrs/openmrs-module-sync2 but am getting into this https://pastebin.com/4TgxMmtb. I am running java 8. any clue why that is happening/

It seems like an issue with Java 8. What is “mvn -v” returning for you?

Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.7.0_95, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: “linux”, version: “4.10.0-42-generic”, arch: “amd64”, family: “unix”

java-modes

mvn -v says java 7 is used by maven. You need to set the JAVA_HOME os variable to point to your java 8 jdk.

1 Like

Thanks. I set those and it worked.