Exception in thread "main" java.lang.UnsupportedClassVersionError

26 views
Skip to first unread message

christian eßl

unread,
May 16, 2011, 3:36:54 AM5/16/11
to weinre
I just tried opening the jar file for 1.4.0 as the running-tutorial
stated:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1<Native Method>
.....

As far as i understand my java-version is incorrect? Unfortonately
there is _no_ information anywhere on the website which java-version
the jar-file is compiled in.

So what should i do to get it working?

Patrick Mueller

unread,
May 16, 2011, 8:47:19 AM5/16/11
to weinre
I don't use any special options when compiling, and I'm compiling on a
Java 1.6 platform, so I assume it's marking the .class files as "can
only be used with Java 1.6". I should probably try to figure out
what the oldest version of Java which is required by weinre, and
compile it to that version.

What version of Java are you using?

I've opened https://github.com/pmuellr/weinre/issues/54 to track this.
Reply all
Reply to author
Forward
0 new messages