Azureus & Java Runtime Environment


Forum: Apps
Topic: Azureus & Java Runtime Environment
started by: nuttymango

Posted by nuttymango on Jan. 20 2005,19:20
I just finished putting DSL on my backup PC, a Celeron 433 MHz with 64 MB of RAM. I can choose to boot either Win98, DSL, or Knoppix from the HD.

So far it looks like DSL is going to be my favorite. It looks wicked cool.

Can someone point me in the right direction to install Azureus (a java-based bit-torrent client that is my favorite)? I've done my due diligence and found JRE 1.5.0 on the MyDSL Click and load page but I don't know how to install Azureus.

I'm a linux noobie but savvy enough to fill in the details if someone can outline the process for me in a few steps. I don't know if I'm savvy enough to know how to spell savvy though.

Thanks to the folks who put DSL together. Hopefull I'll be buying some stuff from the store soon.

Posted by jesseakc on May 24 2005,16:42
I would like to know the same...  Also, how do I determin what version of Java is the right one to use?  Could someone make a .dsl for java and Azureus?

Thanks,
Jesse

Posted by clacker on May 24 2005,19:06
Azureus does work on DSL, here's what I did to make it work.  You need to install the dsl's first:

jre1_5_0.tar.gz
gtk2.dsl
gnu-utils.dsl

jre has the java, gtk is used by swt (which we need to get next because Azureus uses it to run) and gnu-utils is needed because the unzip that comes with dsl can't handle some of the compression used in the zip for swt.

Next, you need to download the swt (Standard Widget Toolkit) from eclipse.  I got it from < http://www.eclipse.org/platform/ > (the file was called swt-3.0.2-linux-gtk.zip) and unzipped it to a directory I called Azzy.  Then I downloaded Azureus from sourceforge and put it into my Azzy directory as well.  I cd to the azzy directory and the following bash file ran Azureus from that directory:

Code Sample
#!/bin/bash
export PATH=$PATH:/opt/jre1_5_0/bin
export JAVA_HOME=/opt/jre1_5_0
java -cp swt.jar:swt-pi.jar:Azureus2.3.0.0.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main


It asked me if I wanted to update and I said yes.  That worked fine and before I knew it, Azureus was up and running.

EDIT: Stupid copy and paste on my part, correct now

Posted by jesseakc on May 27 2005,18:50
Well, I think everything is in the right place but I'm getting this error when I run the script.  I'm sorry for being such a noob.  I don't know what any of that means.

Exception in thread "main" java.lang.NoClassDefFoundError: org/gudy/azureus2/ui/swt/Main

Jesse

Posted by clacker on May 27 2005,20:08
jesseakc, you need to put everything, even that script, into the same directory.  Then cd to that directory and run the script from there.  I got the same error you did when I ran that from some other directory.  Make a new directory called azzy in your home directory and put Azureus2.3.0.0.jar, swt-3.0.2-linux-gtk.zip, and that bash script all in that directory.

open an XShell

cd to that directory you made

type unzip swt-3.0.2-linux-gtk.zip (you should see about 16 files unpacked and no errors.  If you get errors, you forgot to load the gnu-utils.dsl)

use the right click menu and choose myDSL->Update to GTK2 (if you dont see that, you forgot to load the gtk2.dsl package)

If you didn't know how to make a bash script, you open up a beaver editor and save the text for the bash script above into it.  Save it as /home/dsl/azzy/azstart and close beaver.  type chmod 777 /home/dsl/azzy/azstart to make it executable.

If you want, you could add a line to cd to the azzy directory right in the script and then you could run it from anywhere:

Code Sample
#!/bin/bash
export PATH=$PATH:/opt/jre1_5_0/bin
export JAVA_HOME=/opt/jre1_5_0
cd /home/dsl/azzy
java -cp swt.jar:swt-pi.jar:Azureus2.3.0.0.jar -Djava.library.path=./ org.gudy.azureus2.ui.swt.Main


Also note that everything after the java in that script is all on the same line.

Hope this helped.

Posted by jesseakc on May 28 2005,07:45
I figured it out.  Works great.

I had to change one thing in the line...

Code Sample

Java -cp swt.jar:swt-pi.jar:Azureus2.3.0.0.jar -Djava.library.path=./

I had to change Azureus2.3.0.0.jar to Azureus2.jar.  After the frist time you run it and get the upgrade, then I had to change it back to Azureus2.3.0.0.jar.Works great, you should write a how to about this.

However, Ke4nt told me about a feature of the Bittorrent GUI that I did not know about.  Its called Many Curses.  All you have to do is select Many Curses at the top of the GIU and in the URL field put /home/dsl and it will automatically run all of your torrents.  To me, it runs faster the Azureus and is more secure.  If you download a new torrent wile its running, it will automatically start the torrent download.  Easy as pie.

Thanks again for all of your help.

Jesse

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.