FAQ  •  Register  •  Login

ubuntu 12.04 does not support Oracle JAVA

<<

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Mon May 07, 2012 11:48 am

ubuntu 12.04 does not support Oracle JAVA

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
<<

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Mon May 07, 2012 7:49 pm

Re: ubuntu 12.04 does not support Oracle JAVA

ok, ps3mediaserver is working...but I would prefer serviio...
<<

jabrown0604

Serviio lover

Posts: 88

Joined: Sun Jan 22, 2012 8:25 pm

Location: Illinois

Post Tue May 08, 2012 2:58 am

Re: ubuntu 12.04 does not support Oracle JAVA

what do the logs say? can you post them?
“Those who have succeeded at anything and don’t mention luck are kidding themselves.”
Server-Mac Mini / OS-WHS 2011 SP1 / TV/HTS-Sharp Aquos/Samsung HT-C6600
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 08, 2012 4:21 pm

Re: ubuntu 12.04 does not support Oracle JAVA

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.html
Understanding class path wildcards

Some are having problems with Java 7 too: http://stackoverflow.com/questions/7900 ... -in-java-7
You can try to change version on Java 7 as in your particular one there might be a bug.
<<

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Wed May 09, 2012 9:17 pm

Re: ubuntu 12.04 does not support Oracle JAVA

I'm running under linux ubuntu 12.04...still not working. but also ps3mediaserver crashes for some java-related issue.
<<

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Thu May 10, 2012 7:21 pm

Re: ubuntu 12.04 does not support Oracle JAVA

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu May 10, 2012 7:50 pm

Re: ubuntu 12.04 does not support Oracle JAVA

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: .......
<<

aloha

DLNA master

Posts: 166

Joined: Sat Feb 26, 2011 8:07 pm

Post Thu May 10, 2012 10:31 pm

Re: ubuntu 12.04 does not support Oracle JAVA

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

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Fri May 11, 2012 8:11 pm

Re: ubuntu 12.04 does not support Oracle JAVA

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
<<

lorenzo23

Serviio newbie

Posts: 15

Joined: Sun Jan 15, 2012 9:48 am

Post Sat May 12, 2012 3:08 pm

[SOLVED] Re: ubuntu 12.04 does not support Oracle JAVA

Reinstalled one more time serviio, now it works, do not know why.
<<

abubin

Serviio lover

Posts: 80

Joined: Tue Jul 26, 2011 3:54 pm

Post Wed May 16, 2012 4:55 am

Re: ubuntu 12.04 does not support Oracle JAVA

so is serviio working fine now with 12.04? I want to upgrade to 12.04LTS. You guys think it's okay to proceed?

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 57 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.