Unable to launch madsonic (Debian Wheezy)

Need help? Post your questions here.
b1555457
Posts: 1
Joined: 29 Oct 2014, 14:04
Has thanked: 0
Been thanked: 0

Unable to launch madsonic (Debian Wheezy)

Unread post 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.

Dylansama
Posts: 4
Joined: 15 Sep 2014, 08:21
Has thanked: 0
Been thanked: 3 times

Re: Unable to launch madsonic (Debian Wheezy)

Unread post 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?
These users thanked the author Dylansama for the post:
Madsonic
Rating: 7.69%

Robin0815
Posts: 1
Joined: 24 Apr 2014, 11:11
Has thanked: 0
Been thanked: 1 time

Re: Unable to launch madsonic (Debian Wheezy)

Unread post 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
These users thanked the author Robin0815 for the post:
3tcetera
Rating: 7.69%

sIRwa2
Posts: 13
Joined: 29 Oct 2013, 07:01
Has thanked: 1 time
Been thanked: 6 times

Re: Unable to launch madsonic (Debian Wheezy)

Unread post 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
These users thanked the author sIRwa2 for the post (total 2):
3tceteraMadsonic
Rating: 15.38%

User avatar
Madsonic
Administrator
Administrator
Posts: 972
Joined: 07 Dec 2012, 03:58
Answers: 4
Has thanked: 1171 times
Been thanked: 457 times

Re: Unable to launch madsonic (Debian Wheezy)

Unread post by Madsonic »

TYI

i add some java installation notes to the documentation

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

Post Reply