Java version

Need help? Post your questions here.
Nonsense
Posts: 3
Joined: 15 May 2013, 13:17
Has thanked: 0
Been thanked: 0

Java version

Unread post 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.
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Java version

Unread post 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".
These users thanked the author gurutech for the post:
Madsonic
Rating: 7.69%
Nonsense
Posts: 3
Joined: 15 May 2013, 13:17
Has thanked: 0
Been thanked: 0

Re: Java version

Unread post by Nonsense »

Thanks for the answer.

It's strange, because it is indeed the Java6 version I tried.
Nonsense
Posts: 3
Joined: 15 May 2013, 13:17
Has thanked: 0
Been thanked: 0

Re: Java version

Unread post 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 ?
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: Java version

Unread post 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
Post Reply