aido / AidoATP

Reference Implementation of IsisATP from the Open Payments Alliance
GNU General Public License v3.0
39 stars 25 forks source link

Could not find the main class: org/aido/atp/Application. Program will exit. #1

Closed jasonpitts closed 11 years ago

jasonpitts commented 11 years ago

I am not a Java guy so please forgive me if I am missing something simple, but when trying to run -jar aidoatp.jar --clear-config=true

I get:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/aido/atp/Application : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org/aido/atp/Application. Program will exit.

I also get the same error when I clone the repo and try to build it using netbeans

jasonpitts commented 11 years ago

Well, I knew it would be something simple. It turns out I was using Java 6 and I needed to install Java 7.

aido commented 11 years ago

Glad you found the solution. I'll close this issue.

As an aside, aidoATP hasn't been updated in a while. There have been a few changes to some of the exchange APIs recently. As soon as these changes are implemented into the XChange library I'll build a more recent version of aidoATP.