Java not found on Ubuntu Jaunty

For talk and Help about everything concerning TV-Browser.
Antworten
adneto

Java not found on Ubuntu Jaunty

Beitrag von adneto »

Hi all,

When I try to run tvbrowser I got this error message:
Starting TV-Browser...
Java exec not found in PATH, starting auto-search...
ls: impossível acessar /usr/java: Arquivo ou diretório inexistente
OOPS, unable to locate java exec in /usr/java/ hierarchy
You need to upgrade to JRE 5.0 or newer from http://java.sun.com
I have sun-java6-jre properly installed (I'm sure of that),
It's located at: /usr/lib/jvm/java-6-sun/jre/
whereis gives me: java: /usr/bin/java /usr/share/java

I was using OpenJDK, but before installing TVB I removed it and then installed Sun-Java.
ds10
Site Admin
Beiträge: 19117
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Java not found on Ubuntu Jaunty

Beitrag von ds10 »

Code: Alles auswählen

sudo update-alternatives --config java
To select the default Java.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
Gast

Re: Java not found on Ubuntu Jaunty

Beitrag von Gast »

ds10 hat geschrieben:

Code: Alles auswählen

sudo update-alternatives --config java
To select the default Java.
There's only one JVM installed:

(/usr/lib/jvm/java-6-sun/jre/bin/java). Nothing to be configured.
ds10
Site Admin
Beiträge: 19117
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Java not found on Ubuntu Jaunty

Beitrag von ds10 »

What is shown when you enter that:

Code: Alles auswählen

java -version
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
adneto

Re: Java not found on Ubuntu Jaunty

Beitrag von adneto »

ds10

Maybe there's some bug with the sun-java6-jre package for ubuntu. When I try "java -version" it says that java isn't installed and sugests openjdk-jre, and so I installed it. Running TVB I got:

Code: Alles auswählen

$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu10)
OpenJDK Server VM (build 14.0-b08, mixed mode)

$ tvbrowser
Starting TV-Browser...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.6.0_0]
Configuring environment...
Loading TV-Browser:
java -Xms16m -Xmx256m  -Djava.library.path="/usr/share/tvbrowser" -Dpropertiesfile=linux.properties -jar tvbrowser.jar ''
command line options:
    -minimized    The main window will be minimized after start up
    -nosplash     No splash screen during start up
    -fullscreen   Start in fullscreen-mode

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
	at java.lang.Runtime.load0(Runtime.java:787)
	at java.lang.System.load(System.java:1022)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
	at java.lang.Runtime.loadLibrary0(Runtime.java:840)
	at java.lang.System.loadLibrary(System.java:1047)
	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
	at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
	at tvbrowser.TVBrowser.main(TVBrowser.java:234)
TV-Browser TERMINATED.
Now I have OpenJDK and Sun-Java installed.
Why the hell this things happens with me? why!?
adneto

Re: Java not found on Ubuntu Jaunty

Beitrag von adneto »

Well, I'm glad to say that I could "run TVB". Why Quoted? Because I had to install both java versions (OpenJDK and Sun-Java) then set the Sun-java as the default environment, and just before I could run.

Is this some kind of bug? Isn't possible to use just one of them?

thx ofr the help
ds10
Site Admin
Beiträge: 19117
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Java not found on Ubuntu Jaunty

Beitrag von ds10 »

If it is a bug, then it's a Ubuntu bug.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser
v6ph1
Site Admin
Beiträge: 1276
Registriert: 13 Jan 2008, 05:07
Wohnort: Radebeul

Re: Java not found on Ubuntu Jaunty

Beitrag von v6ph1 »

you may try to remove openJDK now.
Then you only have one Java-RE installed.
I always installed the sun-java and then deleted the openjdk.

And I thougth that this is an Ubuntu bug, too.

best regards
v6ph1
Bananeweizen
Site Admin
Beiträge: 3353
Registriert: 09 Sep 2006, 22:45

Re: Java not found on Ubuntu Jaunty

Beitrag von Bananeweizen »

If "java -version" doesn't find anything like it was for you, then that's an Ubuntu issue. And generally speaking: The current OpenJDK is certainly more buggy in some areas than Sun Java, leading to crashes of TV-Browser. But I'm sure the OpenJDK developers get that sorted out, as the new OpenJDK already got a Java compatibility certification from Sun...
Antworten