LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Java problem (https://www.linuxquestions.org/questions/suse-opensuse-60/java-problem-377182/)

Jongi 10-26-2005 03:33 PM

Java problem
 
The following site from FireFox (http://java.com/en/download/help/testvm.xml) says I have 1.5.0_05.

When I run:
Code:

#: java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

is the result. How do I get the command line to return the higher version?

This all results when I try to install Azureus:
Code:

# java -jar Azureus2.3.0.4.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLine

I'd have none of these problems if apt-get install -f azureus did not return

Code:

Unknown signature /var/cache/apt/archives/azureus_2.3.0.4-0.gbv.2_i586.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#b7afc211)
E: Error(s) while checking package signatures:
0 unsigned package(s)
1 package(s) with unknown signatures
0 package(s) with illegal/corrupted signatures
E: Handler silently failed


chemdawg 10-26-2005 09:59 PM

did you manually install java? if you did, it's probably in the /usr/java file. look in there and see what version you have. the only folder in there will be your version. if you have jre1.5.0_03, then there will be a folder by that name.

Jongi 10-27-2005 02:30 AM

Eh, 1.5.0_05 is installed

reddazz 10-27-2005 04:14 AM

I installed azureus (manually not using the rpm) and it works fine with the same version of java that you are using.

Jongi 10-27-2005 05:27 AM

What could be causing the exception error then?

Jongi 10-29-2005 06:35 PM

So I downloaded the tar.bz file and extracted it.

The ran

# ./azureus
Code:

Starting Azureus...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.5.0_03]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/usr/src/azureus/Azureus2.jar:/usr/src/azureus/swt-gtk.jar:/usr/src/azureus/swt.jar:/usr/src/azureus/swt-mozilla.jar" -Djava.library.path="/usr/src/azureus" -Dazureus.install.path="/usr/src/azureus" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/src/azureus/libswt-motif-3106.so: /usr/src/azureus/libswt-motif-3106.so: ELF file data encoding not little-endian
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
        at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
        at org.eclipse.swt.graphics.Device.<clinit>(Device.java:89)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:75)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:58)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:107)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:71)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:98)
Azureus TERMINATED.

I suspect there is something I need to change. Does it need jr2e?

Jongi 10-29-2005 08:24 PM

As it happens, I saw that apt-get downloads rpms to /var/cache/apt/archives/ so I took the azureus rpm and moved it o a directory I setup for SUSE 9.3 downloads.


All times are GMT -5. The time now is 06:22 AM.