Page 1 of 1

Unable to launch madsonic (Debian Wheezy)

Posted: 29 Oct 2014, 16:15
by b1555457
I installed java 7 version 1.7.0_65 along jre-7-headless then installed madsonic 5.1.5200, however when it finishes and tries to start, or I try to manually start it, it doesn't start. My madsonic_sh.log shows this

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/madsonic/booter/Main : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: org.madsonic.booter.Main. Program will exit.

Re: Unable to launch madsonic (Debian Wheezy)

Posted: 01 Nov 2014, 02:30
by Dylansama
Perhaps you missed a step in installation for Debian?
As the main exception really seems to be it could not find the Main class in the booter...which is really bad. Not the java version so much.

Code: Select all

Could not find the main class: org.madsonic.booter.Main. Program will exit.
However just to be sure you do have the correct jre/jvm setup what is the output of?

Code: Select all

java -version
How are you starting madsonic?

Re: Unable to launch madsonic (Debian Wheezy)

Posted: 18 Jan 2015, 03:29
by Robin0815

Code: Select all

#!/bin/bash
sudo apt-get install openjdk-7-jdk openjdk-7-jre
sudo update-alternatives --config java
# Set to 1.7
cd /opt && wget $url_to_latest_madsonic_version
sudo dpkg -i 20141017_madsonic-5.1.5200.deb

Re: Unable to launch madsonic (Debian Wheezy)

Posted: 18 Jan 2015, 10:09
by sIRwa2
What i always forget is that Debian comes standaard with JAVA 6, so you have to switch to 7 manually using

Code: Select all

sudo update-alternatives --config java

Re: Unable to launch madsonic (Debian Wheezy)

Posted: 04 May 2015, 16:52
by Madsonic
TYI

i add some java installation notes to the documentation

http://beta.madsonic.org/pages/installation.jsp#java