Page 1 of 1

Java version

Posted: 15 May 2013, 15:54
by Nonsense
Hi,

Whenever I try to launch Madsonic (tried with Madsonic Server 5.0 Beta2 Build 3480 (JAVA6) and Build 3360), I get this error:

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sourceforge/subsonic/booter/Main : Unsupported major.minor version 51.0
Which seems to be typical of trying to execute bytecode with a JVM that is older than the one that compiled it.

My guess is that Madsonic what compiled with Java7... Is that correct?

Since Server 5.0 Beta2 Build 3480 (JAVA6) seems to be targeted to Java6, would it be possible to compile it with a Java6 JDK ? (Or, if not, maybe it would be nice to change its name to Server 5.0 Beta2 Build 3480 (JAVA7))

Thanks.

Re: Java version

Posted: 15 May 2013, 23:45
by gurutech
Since 4.8 (maybe 4.7), Madsonic has used Java 7, as it's more secure and lacks the "holes" that Java 6 has.

There is a version of Madsonic 5.0 beta compiled with Java 6 - just check the download thread for one marked "JAVA6".

Re: Java version

Posted: 16 May 2013, 20:16
by Nonsense
Thanks for the answer.

It's strange, because it is indeed the Java6 version I tried.

Re: Java version

Posted: 16 May 2013, 20:31
by Nonsense
If I download the Java6 build (20130508_madsonic-5.0.3480.beta2SE-standalone.zip), extract subsonic-booter.jar, and use javap -v on a class file, I get:

Code: Select all

Classfile /home/user/SettingsPanel$1.class
...
  minor version: 0
  major version: 51
...
which are the version numbers for Java1.7.

Am I mistaken, or is it possible that there was some mixup when releasing the build ?

Re: Java version

Posted: 16 May 2013, 22:00
by Madsonic
Hi there,

Thanks for spoting out !

false merged templates ... i will fix this with next Build. ;)

best regards

btw

J2SE 8 = 52,
J2SE 7 = 51,
J2SE 6.0 = 50,
J2SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45