Jump to content

azureus & softlinking


dexter11
 Share

Recommended Posts

OS: Mandriva 2006 RC1 cleanly installed.

I have downloaded the java jre rpm and installed it succesfully. Downloaded Azureus (Linux GTK) unpacked it and copied to /usr/azureus. Made a link with

ln -s /usr/azureus/azureus /usr/bin/azureus

Now if I just type azureus then this happens:

a@localhost Desktop]$ azureus

Starting Azureus...

Java exec found in PATH. Verifying...

Suitable java version found [java = 1.5.0_04]

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.

If I start /usr/azureus/azureus then it works perfectly.

Anyone tell me why?

Link to comment
Share on other sites

From what I can see you have a line which is failing because of java. The line is:

 

java -Xms16m -Xmx128m -cp "/usr/bin/*.jar" -Djava.library.path="/usr/bin" -Dazureus.install.path="/usr/bin"

 

from your text above. The most interesting bit is

 

"-Dazureus.install.path="/usr/bin"

 

This leads me to think it's looking for azureus in /usr/bin, instead of /usr/azureus/azureus.

 

Not sure how you'd change that though. If you run it from the CLI typing /usr/azureus/azureus, does this install.path change to /usr/azureus/azureus?

 

That would possibly highlight a slight issue with the symlink.

Link to comment
Share on other sites

ba@localhost Desktop]$ /usr/azureus/azureus

Starting Azureus...

Java exec found in PATH. Verifying...

Suitable java version found [java = 1.5.0_04]

Configuring environment...

Loading Azureus:

java -Xms16m -Xmx128m -cp "/usr/azureus/Azureus2.jar:/usr/azureus/swt.jar:/usr/azureus/swt-mozilla.jar:/usr/azureus/swt-pi.jar" -Djava.library.path="/usr/azureus" -Dazureus.install.path="/usr/azureus" org.gudy.azureus2.ui.swt.Main ''

It does, how should I link it so it will be in the PATH.

Link to comment
Share on other sites

Add it to PATH in /home/<username>/.bash_profile. The edit would look like this:

 

PATH=$PATH:/usr/azureus/azureus

 

Just look for the above line. There may be other additions to your PATH line; the path to java/bin is frequently stuck in there. Just put ":/usr/azureus/azureus" w/o quotes at the end of the line.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...