UnsupportedClassVersionError
in
Integration and Hardware
•
1 year ago
I'm not sure if this is a Programming Question exactly - it's possible it should be a bug report (edit:
it is also that now), or a Contributed Library question - but I figured I should probably post here first in case anyone has any leads.
I wanted to record a video clip of
my sketch but the core video library didn't work for some reason, so I tried gsvideo, but it said it didn't have all the methods the example code used, so I downloaded a new version of the library, but that gave me an UnsupportedClassVersionError. 'A library is using code compiled with an unsupported version of Java'.
Now I'm getting that error with ALL my sketches, even though I removed the code, and have now removed the library entirely and restarted Processing!
I am very confused.
Anyone got any suggestions? Similar experiences?
I should say
I'm on a Mac OS X , Version 10.5.8. Processing 2.0a8. Worked fine this morning!
Console output:
- This version of Processing only supports libraries and JAR files compiled for Java 1.6 or earlier.
- A library used by this sketch was compiled for Java 1.7 or later,
- and needs to be recompiled to be compatible with Java 1.6.
- 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:676)
- 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:317)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
- at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
1