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/uploadAggregateToAppEngine.app: 'Users/shanonsmith/Documents/ODK Aggregate/uploadAggregateToAppEngine.app: 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(Class.java:375)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main (JarRsrcLoader.java:56)
Caused by: java.lang.ClassNotFounException:
org.apache.commons.cli.ParseException
at Java.base/
java.net.URL.ClassLoader.findClass(URLClassLoader.java:466)
at java.base/
java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at java.base/
java.lang.ClassLoader.loadClass(ClassLoader.java:496)
...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?

Thank

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.