Java not found on Ubuntu Jaunty

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.

BBCode ist eingeschaltet
[img] ist eingeschaltet
[url] ist eingeschaltet
Smileys sind ausgeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Ansicht erweitern Die letzten Beiträge des Themas: Java not found on Ubuntu Jaunty

Re: Java not found on Ubuntu Jaunty

von Bananeweizen » 06 Aug 2009, 08:17

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

Re: Java not found on Ubuntu Jaunty

von v6ph1 » 03 Aug 2009, 00:40

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

Re: Java not found on Ubuntu Jaunty

von ds10 » 02 Aug 2009, 22:00

If it is a bug, then it's a Ubuntu bug.

Re: Java not found on Ubuntu Jaunty

von adneto » 02 Aug 2009, 21:58

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

Re: Java not found on Ubuntu Jaunty

von adneto » 02 Aug 2009, 21:52

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

Re: Java not found on Ubuntu Jaunty

von ds10 » 02 Aug 2009, 21:39

What is shown when you enter that:

Code: Alles auswählen

java -version

Re: Java not found on Ubuntu Jaunty

von Gast » 02 Aug 2009, 20:14

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.

Re: Java not found on Ubuntu Jaunty

von ds10 » 02 Aug 2009, 20:05

Code: Alles auswählen

sudo update-alternatives --config java
To select the default Java.

Java not found on Ubuntu Jaunty

von adneto » 02 Aug 2009, 19:37

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.

Nach oben