Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported major.minor version 51.0 #44

Closed
bostonaholic opened this issue May 8, 2013 · 4 comments
Closed

Unsupported major.minor version 51.0 #44

bostonaholic opened this issue May 8, 2013 · 4 comments

Comments

@bostonaholic
Copy link

full stack trace here:

$ lein spec   
Exception in thread "main" java.lang.UnsupportedClassVersionError: speclj/main : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    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)

my leiningen and java version:

$ lein version
Leiningen 2.1.2 on Java 1.6.0_45 Java HotSpot(TM) 64-Bit Server VM

The only thing I can come up with is from this other issue mmcgrana/clj-json#23

@slagyr
Copy link
Owner

slagyr commented May 8, 2013

This is likely a Java version mismatch. Are you by chance using Speclj version 2.6.0? That version was mistakenly compiled to a Java 1.7 target. And if you're running on a mac, Apple is still distributing Java 1.6. If this is the case, simply upgrade to Speclj 2.6.1. Otherwise, tell me more please.

On May 8, 2013, at 4:43 PM, Matthew Boston [email protected] wrote:

full stack trace here:

$ lein spec
Exception in thread "main" java.lang.UnsupportedClassVersionError: speclj/main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
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)
my leiningen and java version:

$ lein version
Leiningen 2.1.2 on Java 1.6.0_45 Java HotSpot(TM) 64-Bit Server VM
The only thing I can come up with is from this other issue mmcgrana/clj-json#23


Reply to this email directly or view it on GitHub.

@bostonaholic
Copy link
Author

Looks like I've got [speclj "2.7.0"] and yes, I am on a Mac with Java version 1.6.0_45.

@slagyr
Copy link
Owner

slagyr commented May 8, 2013

Wow! You're on the bleeding edge. I deployed that version only a couple hours ago.

Well, I'm not sure how that release got out with the wrong .class files. But rather than make release a new version, I've pushed an updated release of 2.7.0. If you delete your maven cache (see below) all should be well. Please let me know how it turns out.

clean maven cache of speclj 2.7.0...

rm -rf ~/.m2/repository/speclj/speclj/2.7.0/

On May 8, 2013, at 4:52 PM, Matthew Boston [email protected] wrote:

Looks like I've got [speclj "2.7.0"] and yes, I am on a Mac with Java version 1.6.0_45.


Reply to this email directly or view it on GitHub.

@bostonaholic
Copy link
Author

Awesome! Worked like a charm. Closing. Thanks, Micah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants