Page 1 of 1
ubuntu 12.04 does not support Oracle JAVA

Posted:
Mon May 07, 2012 11:48 am
by lorenzo23
Installing 12.04, serviio does not work anymore. Openjdk from repo and/or manually installed oracle-java provide an error related to main classpath when launching serviio:
Errore: impossibile trovare o caricare la classe principale org.serviio.MediaServer
and serviio-console gives:
Errore: impossibile trovare o caricare la classe principale org.serviio.console.ServiioConsole
java -version gives as output:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
any suggestions?
Thanks
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Mon May 07, 2012 7:49 pm
by lorenzo23
ok, ps3mediaserver is working...but I would prefer serviio...
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Tue May 08, 2012 2:58 am
by jabrown0604
what do the logs say? can you post them?
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Tue May 08, 2012 4:21 pm
by zip
it'll be something to do with the .sh startup file, possibly the way it ads all jar files in /lib folder on the classpath.
http://docs.oracle.com/javase/6/docs/te ... spath.htmlUnderstanding class path wildcards
Some are having problems with Java 7 too:
http://stackoverflow.com/questions/7900 ... -in-java-7You can try to change version on Java 7 as in your particular one there might be a bug.
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Wed May 09, 2012 9:17 pm
by lorenzo23
I'm running under linux ubuntu 12.04...still not working. but also ps3mediaserver crashes for some java-related issue.
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Thu May 10, 2012 7:21 pm
by lorenzo23
installed oracle java 7
java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-7-oracle/bin
echo $CLASSPATH
.:$CLASSPATH:$JAVA_HOME/lib
./serviio.sh
Errore: impossibile trovare o caricare la classe principale org.serviio.MediaServer
where is the serviio log file stored under linux ubuntu?
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Thu May 10, 2012 7:50 pm
by zip
it's under serviio/logs
but the problem is it doesnt even start. you can edit serviio.sh and instead of lib/* on the classpath you can list all .jar files in the lib folder like serviio.jar:jaudiotagger.jar: .......
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Thu May 10, 2012 10:31 pm
by aloha
try this
http://ubuntuforums.org/showthread.php?t=1977010 ...I didn't have to try this because after OS update all worked fine..Anyway hope it will help.
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Fri May 11, 2012 8:11 pm
by lorenzo23
Thank you, but my JAVA installation actually works.
It's serviio that is not happy with it. How should I amend the serviio.sh file?
I think the problem is somewhere here
$JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer
in /etc/environment I added
JAVA_HOME=/usr/lib/jvm/java-7-oracle/bin/
CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib
and in .bashrc I added
JAVA_HOME=/usr/lib/jvm/java-7-oracle
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
Thanks
[SOLVED] Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Sat May 12, 2012 3:08 pm
by lorenzo23
Reinstalled one more time serviio, now it works, do not know why.
Re: ubuntu 12.04 does not support Oracle JAVA

Posted:
Wed May 16, 2012 4:55 am
by abubin
so is serviio working fine now with 12.04? I want to upgrade to 12.04LTS. You guys think it's okay to proceed?