Raspberry Pi - server not reachable

Need help? Post your questions here.
krijeck
Posts: 2
Joined: 29 May 2014, 17:32
Has thanked: 0
Been thanked: 0

Raspberry Pi - server not reachable

Unread post by krijeck »

Hello,

I've used a guide to install madsonic and managed to get the service up and running.

When I write (SSH): sudo madsonic the output is:

Code: Select all

Started Madsonic [PID 2462, /var/madsonic/madsonic_sh.log]
and this is in madsonic_sh.log:

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.

Code: Select all

java -version 

Code: Select all

java version "1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-1.13.4-1~deb7u1+rpi1)
OpenJDK Zero VM (build 23.25-b01, mixed mode)

What did I do wrong? Any help or ideas?

Thanks,
krijeck
User avatar
DoCC
Contributor
Contributor
Posts: 211
Joined: 25 Feb 2014, 14:41
Has thanked: 40 times
Been thanked: 65 times

Re: Raspberry Pi - server not reachable

Unread post by DoCC »

install java 7 / open jdk 7

then switch to the newly installed java version to default

start madsonic again, happy listening
krijeck
Posts: 2
Joined: 29 May 2014, 17:32
Has thanked: 0
Been thanked: 0

Re: Raspberry Pi - server not reachable

Unread post by krijeck »

hello, thanks for the quick response! After some googling I found out how to install a newer Java version. Now its version 8 (seems so).

pi@raspberrypi ~ $ java -version

Code: Select all

java version "1.8.0_06"
Java(TM) SE Runtime Environment (build 1.8.0_06-b23)
Java HotSpot(TM) Client VM (build 25.6-b23, mixed mode)
A sudo service madsonic restart gives the output:

Code: Select all

[....] Restarting Madsonic Daemon: madsonicStarted Madsonic [PID 2396, /var/madsonic/madsonic_sh.log]
. ok 
and the log file is very long and does not include any errors. So it seems that the service is running.
but still I am not able to access the web interface!

any further ideas?
User avatar
DoCC
Contributor
Contributor
Posts: 211
Joined: 25 Feb 2014, 14:41
Has thanked: 40 times
Been thanked: 65 times

Re: Raspberry Pi - server not reachable

Unread post by DoCC »

i guess you have a debianbased distro running, like xbian, raspbian or so

open your terminal with root credentials.

apt-get update
apt-cache search openjdk-7

the exakt package name will be showon in the list.

in stall the regardnig paackage with

apt-get install PACKAGE-NAME



then switch your java default version
Post Reply