Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Azureus & Java Runtime Environment< Next Oldest | Next Newest >
nuttymango Offline





Group: Members
Posts: 1
Joined: Jan. 2005
Posted: Jan. 20 2005,19:20 QUOTE

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.
Back to top
Profile PM 
jesseakc Offline





Group: Members
Posts: 56
Joined: May 2005
Posted: May 24 2005,16:42 QUOTE

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
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: May 24 2005,19:06 QUOTE

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
Back to top
Profile PM 
jesseakc Offline





Group: Members
Posts: 56
Joined: May 2005
Posted: May 27 2005,18:50 QUOTE

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
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: May 27 2005,20:08 QUOTE

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.
Back to top
Profile PM 
5 replies since Jan. 20 2005,19:20 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Azureus & Java Runtime Environment

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code