I downloaded the .jar file. When I click on it, it returns "Could not find the main class." - I opened the file and saw that there are two MANIFEST.MF files (same name) in the same directory. Very strange!
[alan@velenje Inbox]$ java -jar com.horstmann.violet-0.21.1.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Two manifests is not so strange. If you are building from an ANT file, either include the MANIFEST in the copy, or specify it as an attribute, but do not do both.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
I had same problem on windows, on a shared computer at school.
Logged In: YES
user_id=687087
Originator: NO
Unable to run on OS X. With this error:
[alan@velenje Inbox]$ java -jar com.horstmann.violet-0.21.1.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Logged In: YES
user_id=687087
Originator: NO
Two manifests is not so strange. If you are building from an ANT file, either include the MANIFEST in the copy, or specify it as an attribute, but do not do both.