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.
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:
$ 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!?
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?
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...