LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-18-2004, 01:01 AM   #1
TheMooch
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 3
Posts: 16

Rep: Reputation: 0
FC3 Azureus/Java issue


Well, I decided to finally Dual Boot my XP box. Unfortuanately I can't get rid of XP altogether, but oh well. I've got Azureus running on FC2 on my laptop without issue, but in FC3, with jdk 1.5, I get this:
(Any ideas on what's screwed up?)

$ java -cp swt.jar:swt-pi.jar:Azureus2.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main
java.nio.charset.UnsupportedCharsetException
at java.nio.charset.Charset.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at org.gudy.azureus2.core3.util.BEncoder.BEncoder() (Unknown Source)
at org.gudy.azureus2.core3.util.BEncoder.encode(java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.util.FileUtil.writeResilientConfigFile(java.lang.String, java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save(java.lang.String) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.util.AEDiagnostics.startup() (Unknown Source)
at org.gudy.azureus2.core3.util.AEDiagnostics.getLogger(java.lang.String) (Unknown Source)
at org.gudy.azureus2.core3.util.Debug.<clinit>() (Unknown Source)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at org.gudy.azureus2.core3.util.BEncoder.BEncoder() (Unknown Source)
at org.gudy.azureus2.core3.util.BEncoder.encode(java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.util.FileUtil.writeResilientConfigFile(java.lang.String, java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save(java.lang.String) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationChecker.checkConfiguration() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.initialise() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.getInstance() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.initialise() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.AzureusCoreImpl() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.create() (Unknown Source)
at com.aelitis.azureus.core.AzureusCoreFactory.create() (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.Main(java.lang.String[]) (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.main(java.lang.String[]) (Unknown Source)
DEBUG::Thu Nov 18 01:45:19 GMT-05:00 2004
java.nio.charset.UnsupportedCharsetException
at java.nio.charset.Charset.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at org.gudy.azureus2.core3.util.BEncoder.BEncoder() (Unknown Source)
at org.gudy.azureus2.core3.util.BEncoder.encode(java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.util.FileUtil.writeResilientConfigFile(java.lang.String, java.util.Map) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save(java.lang.String) (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.save() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationChecker.checkConfiguration() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.initialise() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.getInstance() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.initialise() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.AzureusCoreImpl() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.create() (Unknown Source)
at com.aelitis.azureus.core.AzureusCoreFactory.create() (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.Main(java.lang.String[]) (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.main(java.lang.String[]) (Unknown Source)

Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.gudy.azureus2.core3.security.impl.SESecurityManagerImpl
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at org.gudy.azureus2.core3.security.SESecurityManager.initialise() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationChecker.setSystemProperties() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.initialise() (Unknown Source)
at org.gudy.azureus2.core3.config.impl.ConfigurationManager.getInstance() (Unknown Source)
at org.gudy.azureus2.core3.config.COConfigurationManager.initialise() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.AzureusCoreImpl() (Unknown Source)
at com.aelitis.azureus.core.impl.AzureusCoreImpl.create() (Unknown Source)
at com.aelitis.azureus.core.AzureusCoreFactory.create() (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.Main(java.lang.String[]) (Unknown Source)
at org.gudy.azureus2.ui.swt.Main.main(java.lang.String[]) (Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.net.ssl.KeyManagerFactory not found in [file:swt.jar, file:swt-pi.jar, file:Azureus2.jar, file:/usr/share/java/libgcj-3.4.2.jar, file:./, core:/]
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
...12 more
 
Old 11-18-2004, 01:02 AM   #2
TheMooch
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
BTW

I get the exact same thing when I type ./azureus
 
Old 11-20-2004, 05:06 AM   #3
ant87
LQ Newbie
 
Registered: Nov 2004
Location: Estonia
Distribution: Gentoo Linux
Posts: 1

Rep: Reputation: 0
I have same problem.
 
Old 11-20-2004, 05:08 AM   #4
wzup
LQ Newbie
 
Registered: Sep 2004
Location: Norway
Distribution: Linux Mandrake 10.0, FC3, etc
Posts: 11

Rep: Reputation: 0
I have the problem also , but my error is a little different
Code:
./azureus
Starting Azureus...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE [java = libgcj-java-placeholder.sh]
You need to upgrade to JRE 1.4.x or newer from http://java.sun.com
Java exec found in  /usr/java/j2re1.4.2_05/bin/
Suitable java version found  [/usr/java/j2re1.4.2_05/bin/java = 1.4.2_05]
Configuring environment...
Loading Azureus:
/usr/java/j2re1.4.2_05/bin/java -Xms16m -Xmx128m -cp "/home/erlend/Programmer/azureus/Azureus2.jar:/home/erlend/Programmer/azureus/swt-gtk.jar:/home/erlend/Programmer/azureus/swt.jar:/home/erlend/Programmer/azureus/swt-mozilla.jar" -Djava.library.path="/home/erlend/Programmer/azureus" -Dazureus.install.path="/home/erlend/Programmer/azureus" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/erlend/Programmer/azureus/libswt-motif-3106.so: libXp.so.6: cannot open shared object file: Nosuch file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        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:58)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:45)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:181)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:71)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:115)
Azureus TERMINATED.

Last edited by wzup; 11-20-2004 at 05:19 AM.
 
Old 11-20-2004, 11:54 AM   #5
dareino
Member
 
Registered: Mar 2004
Location: S.F.,Ca
Distribution: FC4
Posts: 82

Rep: Reputation: 15
I am running FC3 and Azureus w/o any probs....I did d/l the latest Java, I thinks its 5....check out sun.com
dareino
 
Old 11-26-2004, 04:55 PM   #6
ltcstyle
LQ Newbie
 
Registered: Nov 2004
Location: UK
Distribution: FC3
Posts: 12

Rep: Reputation: 0
I have the latest version java, but still have that problem.
 
Old 11-30-2004, 08:48 AM   #7
linuxoid
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Solution

here is the solution for the problem
link 1
link 2

Last edited by linuxoid; 12-29-2004 at 03:46 PM.
 
Old 11-30-2004, 06:46 PM   #8
fedorafreak
Member
 
Registered: Aug 2004
Location: North Carolina
Distribution: Fedora Core 2
Posts: 64

Rep: Reputation: 15
you little fsck posting a plug for microsoft Hey moderators ban linuxoid
OH by the way try running java 1.4 or 1.3
Also it may br the version of azureus when i upgraded it would crash and crash............

Last edited by fedorafreak; 11-30-2004 at 06:49 PM.
 
Old 11-30-2004, 06:53 PM   #9
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
wzup, you appear to be having a problem with the libraries, make sure SWT is where the java can find it.
 
Old 12-02-2004, 08:28 AM   #10
thegnu
Member
 
Registered: May 2004
Location: St. Petersburg, FL USA
Distribution: Arch Linux, Fedora Core 3
Posts: 51

Rep: Reputation: 15
I'm having the same problem both under FC3 and Arch Linux. I have installed on both j2re 1.4
How doest this compare to the rest of you who aren't working? How about the ones that it's working for?

What package supplies the Standard Widget Toolkit?
 
Old 12-03-2004, 06:37 PM   #11
wzup
LQ Newbie
 
Registered: Sep 2004
Location: Norway
Distribution: Linux Mandrake 10.0, FC3, etc
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by aaa
wzup, you appear to be having a problem with the libraries, make sure SWT is where the java can find it.
Ok, thanks for pointing that out. I'm pretty new to Linux so how exactly do I do that?
 
Old 12-04-2004, 12:55 AM   #12
borgware
LQ Newbie
 
Registered: Jan 2004
Location: Arizona
Distribution: CentOS/RHEL
Posts: 25

Rep: Reputation: 15
You need official sun JDK 5 to run azureus from FC3.
Get self extracting packages from
here

Then change file permission to executable.
chmod +x jdk-1_5_0-linux-i586.bin
extract file
./jdk-1_5_0-linux-i586.bin
Files will be extracted to jdk1.5.0 directory

You can move that directory to /opt or any other suitable location for you.
Now edit 4th line in azureus script file with text editor
i.e. JAVA_PROGRAM_DIR="/opt/jdk1.5.0/jre/bin/"
and 23rd line
JAVADIR=/opt/jdk1.5.0/jre/bin/

save/exit/enjoy azureus

note
I didn't want to install sun JDK RPM cause it would overwrite fedora's java packages and possibly make some conflicts so better avoid it.
 
Old 12-04-2004, 05:34 PM   #13
wzup
LQ Newbie
 
Registered: Sep 2004
Location: Norway
Distribution: Linux Mandrake 10.0, FC3, etc
Posts: 11

Rep: Reputation: 0
Quote:
Originally posted by borgware
You need official sun JDK 5 to run azureus from FC3.
Get self extracting packages from
here

Then change file permission to executable.
chmod +x jdk-1_5_0-linux-i586.bin
extract file
./jdk-1_5_0-linux-i586.bin
Files will be extracted to jdk1.5.0 directory

You can move that directory to /opt or any other suitable location for you.
Now edit 4th line in azureus script file with text editor
i.e. JAVA_PROGRAM_DIR="/opt/jdk1.5.0/jre/bin/"
and 23rd line
JAVADIR=/opt/jdk1.5.0/jre/bin/

save/exit/enjoy azureus

note
I didn't want to install sun JDK RPM cause it would overwrite fedora's java packages and possibly make some conflicts so better avoid it.
I did what you recommended, and here is what happens:
Code:
[root@localhost azureus]# ./azureus
Starting Azureus...
Loading Azureus:
/opt/jdk1.5.0/jre/bin/java -Xms16m -Xmx128m -cp "/home/erlend/Programmer/azureus
/Azureus2.jar:/home/erlend/Programmer/azureus/swt-gtk.jar:/home/erlend/Programme
r/azureus/swt.jar:/home/erlend/Programmer/azureus/swt-mozilla.jar" -Djava.library.path="/home/erlend/Programmer/azureus" -Dazureus.install.path="/home/erlend/Programmer/azureus" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/erlend/Programmer/azureus/libswt-motif-3106.so: libXp.so.6: cannot open shared object file: Nosuch file or directory
        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:58)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:45)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:181)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:71)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:115)
Azureus TERMINATED.
Any idea why it fails?

Last edited by wzup; 12-04-2004 at 05:36 PM.
 
Old 12-04-2004, 06:36 PM   #14
borgware
LQ Newbie
 
Registered: Jan 2004
Location: Arizona
Distribution: CentOS/RHEL
Posts: 25

Rep: Reputation: 15
Wzup
I see you're using motif version of azureus and that exactly where you're getting errors.
Quote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/erlend/Programmer/azureus/libswt-motif-3106.so:
Maybe you should try GTK version.
http://prdownloads.sourceforge.net/a...r.bz2?download

Last edited by borgware; 12-04-2004 at 06:43 PM.
 
Old 12-05-2004, 04:39 AM   #15
wzup
LQ Newbie
 
Registered: Sep 2004
Location: Norway
Distribution: Linux Mandrake 10.0, FC3, etc
Posts: 11

Rep: Reputation: 0
Thanks. Seems I was using the motif version. Strange because I always download the GTK version. Anyway it works now !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Azureus and Java peterman9898 Linux - Software 1 11-19-2005 02:59 AM
Azureus Java issues dreakon SUSE / openSUSE 1 10-03-2005 09:55 AM
azureus possible permission issue true_atlantis Linux - Software 1 08-28-2005 03:58 AM
java and azureus aRm1983 Linux - Software 3 06-08-2005 10:52 AM
java and azureus aRm1983 Mandriva 2 06-06-2005 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration