LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Azureus error (https://www.linuxquestions.org/questions/slackware-14/azureus-error-311978/)

Seiken 04-11-2005 07:43 AM

Azureus error
 
Just downloaded and uncompressed Azureus (it doesn't require a compile and/or install). When I run it, here is what I get:
Code:

$ azureus&
[1] 516
Starting Azureus...
Java exec found in PATH. Verifying...
josh@initialize:~$ Suitable java version found [java = 1.5.0_01]
Configuring environment...
Loading Azureus:
java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin" -Dazureus.install.path="/usr/bin" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.NoClassDefFoundError: org/gudy/azureus2/ui/swt/Main
Azureus TERMINATED.

So, of course, it doesn't even bother to open.

I haven't installed any JRE because Slackware 10.1 already has 1.5.0.01 installed (you can see in the error message that Azureus found it.) All I've done so far is move Azureus into /usr/local (since it was in my home folder after uncompressing.) Is there an extra step I need to take?

Thanks.

Gay R0b0t 04-11-2005 08:02 AM

looked at this? Linux Howto

Seiken 04-11-2005 08:14 AM

Quote:

Originally posted by Gay R0b0t
looked at this? Linux Howto
Yes, but it doesn't help much. JRE is already installed (and found), and GTK+2-2.6.1 is already installed too. I guess my problem is I don't really understand what the error message is trying to tell me, so I have no idea what needs to be fixed.

gbonvehi 04-11-2005 12:15 PM

Seiken, how did you installed, did you create a separate folder for azureus? What's the bin file in /usr/bin, a symlink to azureus's startup script?

Seiken 04-11-2005 01:43 PM

I installed by downloading the .tar.bz2 file from the Azureus site on sourceforge to a "download" directory in my home directory. From that download directory, I uncompressed the file which created a new "azureus" directory in my "download" directory. I went in the "azureus" directory, and read "README.txt" which stated:
Code:

REQUIREMENTS:
Azureus requires Sun Java 1.4.x or newer to run.
JRE 1.5 (5.0 series) is highly recommended.
http://java.sun.com

RUNNING:
1. Extract the contents of this .tar.bz2 file.
2. Change to the 'azureus' directory where the files were extracted.
3. Start Azureus by running the script named 'azureus'; ex. "./azureus"

NOTE:
If you have the Java JRE installed somewhere unusual (or not in your PATH),
use the JAVA_PROGRAM_DIR option in the script.

So instead of running ./azureus, I did "cd .." and then moved that azureus directory to /usr/local/bin (maybe not the best spot, but it's where I have been recommended to install programs.) I then created a symlink in /usr/bin called "azureus" which goes to /usr/local/bin/azureus/azureus.

I am running JRE 1.5.0.1, and /usr/lib/java/bin and /usr/lib/java/jre/bin are both in my path. One thing I have noticed is there are no .jar files in /usr/bin. Might this all be because I'm running azureus from the symlink in /usr/bin instead of the actual file itself in /usr/local/bin/azureus? I would try it myself, but I'm at work right now... there ARE a few .jar files in /usr/local/bin/azureus.

gbonvehi 04-11-2005 04:04 PM

Yes, the problem is the symlink since the azureus script tries tu run the main Java class from the directory where it was run, in your case /usr/bin.
A solution would be to create a script like this:
Code:

#!/bin/sh
cd /usr/local/bin/azureus
./azureus

and put it on your /usr/bin.
You could also modify azureus startup script, but making the script i wrote above is easier.

Seiken 04-11-2005 04:32 PM

Thank you. I will test it out when I get home.


All times are GMT -5. The time now is 10:46 PM.