Error running Aggregrate after installation

After downloading/installing the ODK aggregate for MacOS, I keep getting an error when trying to run the aggregate and complete the setup. The message I get is as follows:

Error running osascript 'Users/shanonsmith/Documents/ODK Aggregate/ 'Users/shanonsmith/Documents/ODK Aggregate/ execution error: Exception in thread "main" java/lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main (
Caused by: java.lang.ClassNotFounException:
at Java.base/
at java.base/
at java.base/
...3 more (1)
The application will exit now

I am working on a Mac running macOS High Sierra. I am using Java 8 Update 161.

Any ideas on how to get this to run?


Run java -version on your command line. What does it return?

It says:

java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

You'll need to uninstall Java 9.

Run /usr/libexec/java_home -V and it will show you the various versions of Java you have installed. Remove the Java 9 folder (e.g., /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk) and try running Aggregate then.

We'll have a fix for this in the next release of Aggregate.