ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.7k stars 659 forks source link

Run failed in Amazon EC2 instance #14

Closed jpwalsh1 closed 10 years ago

jpwalsh1 commented 10 years ago

Using the default Amazon Linux build, I get the following error when attempting to start the jar. Have you got this to run in ec2?

uname - amzn1.x86_64 #1 SMP Mon Aug 12 21:43:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[disunity]$ ./disunity.sh Exception in thread "main" java.lang.UnsupportedClassVersionError: info/ata4/unity/cli/DisUnityCli : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:643) 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:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) Could not find the main class: info.ata4.unity.cli.DisUnityCli. Program will exit.

NicosKaralis commented 10 years ago

same problem, can someone help?

ata4 commented 10 years ago

Looks like the default build has Java 6 installed. However, Disunity requires Java 7.

jpwalsh1 commented 10 years ago

Thanks for checking into it!

andrecaribe commented 10 years ago

I got the same error on Mac OS X with Java 7.51

Exception in thread "main" java.lang.UnsupportedClassVersionError: info/ata4/unity/cli/DisUnityCli : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
andrecaribe commented 10 years ago

I updated my Java to 7.55 and occurs the same error.

ata4 commented 10 years ago

What do you get if you open the terminal and run java -version?

andrecaribe commented 10 years ago

Thanks for you response @ata4 my java shows:

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I confuse myself, JVM and Java SDK versions had different. I updated my Java SDK to 8+ and worked fine!