You are not logged in.

#1 2008-12-28 15:03:47

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

/usr/bin/azureus: line 3: java: command not found

I am running Arch64 and I installed jdk_beta and jre_beta from AUR. All my java applets work but whenever I launch azureus I get the error:

/usr/bin/azureus: line 3: java: command not found

I normally would use rtorrent but now I have a ISP which throttles bittorrent (Atlantic Broadband) so I need to encrypt. I found a guide here http://torrentfreak.com/how-to-encrypt- … t-traffic/ but it doesnt mention rtorrent. I tried to encrypt using rtorrent by commenting out the line: 

encryption = allow_incoming,enable_retry,prefer_plaintext

but I am still getting slow speeds. Any ideals? 

Thanks

Last edited by securitybreach (2008-12-28 15:18:12)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#2 2008-12-28 15:13:30

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: /usr/bin/azureus: line 3: java: command not found

Also, I tired encrypting using Azureus on another machine running LinxMint and it worked perfectly so I know it can be done.

THanks


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#3 2008-12-28 15:21:27

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: /usr/bin/azureus: line 3: java: command not found

Not sure but I think the jre packages need to source something in /etc/profile.d/

I'd also try using a different port, and some other options like:
encryption = allow_incoming,try_outgoing,require_RC4

Offline

#4 2008-12-28 15:29:33

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: /usr/bin/azureus: line 3: java: command not found

I just tried and azureus works fine with openjdk6.  If you have to use jdk/jre you can open the /usr/bin/azureus file and see why it doesn't work -- it's just a 1-2 line bash script, if I remember correctly, so it should be easy to fix or figure out what's wrong.

Offline

#5 2008-12-28 15:35:52

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: /usr/bin/azureus: line 3: java: command not found

Thanks Procyon. I used those options in rtorrent and it seems to downloading alot faster but dropped back down. I am using port 9883-9885 instead of the normal bittorrent ones.

fwojciec: I will try openjdk6 instead of the ones I used. I also looked at /usr/bin/azureus and tried to put in the correct path which is /opt/java/bin/java but it didnt work. Here is the /usr/bin/azureus:

#!/bin/bash
CLASSPATH="/usr/share/java/Azureus2.jar:/usr/share/java/swt.jar:/usr/share/java/bcprov.jar"
java -cp "${CLASSPATH}" -Dazureus.install.path=${HOME}/.azureus/ org.gudy.azureus2.ui.swt.Main "$@"

I changed the /usr/share to /opt/ but it couldnt find bcprov.jar.

Thanks for the help guys!!!

Last edited by securitybreach (2008-12-28 15:38:18)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#6 2008-12-28 15:40:39

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: /usr/bin/azureus: line 3: java: command not found

Well I installed openjdk6 and it worked beautifully.

Thanks


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#7 2009-06-24 00:18:13

frijj2k
Member
Registered: 2009-06-24
Posts: 1

Re: /usr/bin/azureus: line 3: java: command not found

I had the same problem running phex from AUR using j2re...

To solve, type the following in a terminal...

sudo ln -s /opt/java/jre/bin/java /usr/bin/java

It appears the jre from AUR installs to /opt/... so creating a symbolic link to the file in /usr/bin does the trick.

Hope this helps...   wink

Last edited by frijj2k (2009-06-24 00:19:04)

Offline

#8 2009-06-24 09:59:01

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: /usr/bin/azureus: line 3: java: command not found

You could also try deluge, it supports encryption too.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2009-06-24 10:52:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: /usr/bin/azureus: line 3: java: command not found

These programs should either explicitly depends on a specific java or use ${JAVA_HOME} in their launcher scripts which is defined in an /etc/profile.d/??? provided the java.

Offline

Board footer

Powered by FluxBB