LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2004, 10:08 AM   #1
k0ljat
Member
 
Registered: Apr 2003
Location: Underground
Distribution: Slackware
Posts: 103

Rep: Reputation: 15
Problem with Torrent client and Java


So i wanted to download some movies and figured i need torrent, i looked up google and found out that Azuras is the best client for linux, i downloaded the needed files and tryed to execute it but i got an error like this:



Code:
bash-2.05b# ./azureus
Starting Azureus...
Java exec not found in PATH, starting auto-search...
ls: /usr/java: No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.4.x or newer from http://java.sun.com


So i went to java.sun.com and downloaded the latest java, installed it(without errors, everything seems to work) but i still get an error when starting azureus, so i figured i need to make a symlink of java to /usr/java, but i can't find it.. :d, so i need someone to give me tips/hints how to find it


It's a stupit problem but i need help
 
Old 08-11-2004, 12:10 PM   #2
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
Hi,

find out where u installed java....

[# locate javac

/opt/j2sdk_nb/j2sdk1.4.2/bin/javac [***so on my system java is installed in ------------>/opt/j2sdk_nb/j2sdk1.4.2/ ]

]

and then edit your .bashrc file [to set ur environment variables....]

*********Sample******************


contents of .bashrc file


PATH="$PATH:.:/opt/j2sdk_nb/j2sdk1.4.2/bin:."
export PATH

CLASSPATH="$CLASSPATH:/opt/j2sdk_nb/j2sdk1.4.2/lib:"
export CLASSPATH

***********************************

start a *****new shell session ***** and then execute Azures


bye!!!
 
Old 08-12-2004, 06:00 PM   #3
k0ljat
Member
 
Registered: Apr 2003
Location: Underground
Distribution: Slackware
Posts: 103

Original Poster
Rep: Reputation: 15
I can't find the bashrc file :[
 
Old 08-12-2004, 07:52 PM   #4
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
hi,

its is a hidden file

login as root --->

At command prompt type the below

# locate .bashrc

/root/.bashrc [output....]
 
Old 08-13-2004, 01:19 AM   #5
k0ljat
Member
 
Registered: Apr 2003
Location: Underground
Distribution: Slackware
Posts: 103

Original Poster
Rep: Reputation: 15
Code:
bash-2.05b# locate .bashrc  
bash-2.05b# /root/.bashrc 
bash: /root/.bashrc: No such file or directory
bash-2.05b#

:[
 
Old 08-13-2004, 02:24 PM   #6
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
Hi k0ljat,

Here's what u do..

1) paste the following code into a file




#! /bin/bash

PATH="$PATH:.:/opt/j2sdk_nb/j2sdk1.4.2/bin:."
export PATH
#### [Note: The above line is **MY Path to (Java bin folder) change it accordingly to where ur java/bin directory is... ]


CLASSPATH="$CLASSPATH:/opt/j2sdk_nb/j2sdk1.4.2/lib:" []
export CLASSPATH

### [Note: The above line is **MY Path to (java/lib folder) change it accordingly to where ur (java/lib) directory is... ]



exec /home/snoopy/AZUREUS/azureus &
####[the above line is MY PATH to the azureus file (change it to where UR azureus file is)]




2) Save it as ---> azureus.sh


3) at ur shell prompt

# chmod u+x azureus.sh

4) run it

# ./azureus.sh




That shud do....





bye !!!!!!!!!!!
 
Old 08-13-2004, 02:28 PM   #7
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
Sorry !!!!!! Ignore my last POST

as it had some typo......





Here's what u do..



1) paste the following code into a file









#! /bin/bash



PATH="$PATH:.:/opt/j2sdk_nb/j2sdk1.4.2/bin:."

export PATH

#### [Note: The above line is **MY Path to (Java bin folder) change it accordingly to where ur java/bin directory is... ]





CLASSPATH="$CLASSPATH:/opt/j2sdk_nb/j2sdk1.4.2/lib:"

export CLASSPATH



### [Note: The above line is **MY Path to (java/lib folder) change it accordingly to where ur (java/lib) directory is... ]







exec /home/snoopy/AZUREUS/azureus &

####[the above line is MY PATH to the azureus file (change it to where UR azureus file is)]









2) Save it as ---> azureus.sh





3) at ur shell prompt



# chmod u+x azureus.sh



4) run it



# ./azureus.sh









Best of Luck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't use torrent client with slack10.2 fireedo Slackware 8 11-29-2005 08:05 AM
Torrent Client with auto stop jpc82 Linux - Software 2 09-23-2005 04:29 PM
text based torrent client? beatupbilly Fedora 1 11-20-2004 11:43 PM
Torrent client in a shell Spooky Linux - Newbie 1 01-10-2004 09:26 AM
Installing bit torrent client. Budious Linux - Newbie 9 12-31-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration