LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-04-2005, 03:30 AM   #1
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
Installing Azureus


I have Mandrake 10.1 and I want to install Azureus.

I installed the Java -->jre-1_5_0_01-linux-i586-rpm.bin

I entered it this way.

Using the cd command, i went to that directory, and then did ./jre-1_5_0_01-linux-i586-rpm.bin

After this it created an rpm file in the same directory.

I installed that too using

rpm -iv jre-1_5_0_01-linux-i586-rpm

then it gave me some error saying that input-output error, (it was related for it's inability to unmount a share).....>>I wonder that it is related to the rpm installation.

Then it halted for about 30 secs, and then it got fine.

I am a newbie, I don't know whether after installation I should have got a message sayin that Installation complete etc.........>>>I did not get anything like that.

I downloaded the Azureus.jar, from the site.

Now i wonder whether it is the appropriate version , or I should have downloaded something else.

Please guide me for Installing Azureus.

Also tell me I have done a proper install of Java or not, if yes, how do i check that!
 
Old 05-04-2005, 04:01 AM   #2
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
I don't know Mandrake, but installing stuff manually if you don't know what you're doing is almost never a good idea. Your distro should have a package management system (like apt-get in Debian or emerge in Gentoo or yast in Suse...) which takes care of all dependencies (like installing a Java Runtime Environment for Azureus).
 
Old 05-04-2005, 04:20 AM   #3
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
To check Java is installed properly just type
Code:
java -version
at a command prompt.

Result should be similar to as below except in your case with 1.5.0.01 as the version.
Code:
prj@elinmai:~> java -version
 java version "1.4.2_06"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) 
 Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
If this doesn't work right you may need to add Java to your path.
 
Old 05-04-2005, 04:23 AM   #4
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Yeah, there is something called Mandrake control Center in Mandrake.

But when i searched for Java, no results were found, and so thought of manually Installing that stuff.
 
Old 05-04-2005, 05:18 AM   #5
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
I did not get the message that you have mentioned.

So it means that Java is not installed properly?

>>>>If this doesn't work right you may need to add Java to your path.

What does this mean?
 
Old 05-04-2005, 05:39 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Do the following,
[list=1][*]Start a console session and switch to root using "su -"[*]Change into /etc/profile.d e.g.
Code:
#cd /etc/profile.d
[*]make a file called java.sh e.g.
Code:
#emacs java.sh
[*]copy and paste the code below
Code:
 
#!/bin/sh
export JAVA_HOME=/opt/java
export MANPATH="$MANPATH:/opt/java/man"
export PATH="$PATH:/opt/java/bin"
[*]Save the file and make it executable e.g.
Code:
#ctrl-x ctrl-s
#chmod +x java.sh
[*]create a symlink to your java directory into /opt .e.g.
Code:
#ln -s /usr/java/jre-version /opt/java
[*]log out and in again and java should be working ok for all users.[/list=1]

There are other ways of configuring your java path, but I prefer this method becaus it makes java accessible to everyone. Just remember to update your symlink if you upgrade java.

Last edited by reddazz; 05-04-2005 at 05:41 AM.
 
Old 05-04-2005, 07:34 AM   #7
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
NOw, whenever I open console, I get this message.

bash: export: `MANPATH-:/opt/java/man': not a valid identifier


Now what has gone wrong?
 
Old 05-04-2005, 07:39 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Edit the script and remove or comment out the export MANPATH="$MANPATH:/opt/java/man". I wrote it for the jdk so maybe the jre doesn't have the manual. Before doing that does "java -version" print out the java version?
 
Old 05-04-2005, 09:00 AM   #9
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
NO, It does not.
 
Old 05-04-2005, 09:05 AM   #10
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
/opt may not be where your Java install resides.

Which directory is it in?
 
Old 05-04-2005, 09:30 AM   #11
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
Sorry I don't know where it is.

I have a problem with the Find Option too.......It gets stuck up.

I don't know what is it happening. .....so i can't find my java too.

I have mentioned what I exactly did in my first post.

Maybe that helps.

Last edited by duffmckagan; 05-04-2005 at 09:38 AM.
 
Old 05-04-2005, 09:40 AM   #12
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Do yourself a favor - do an RPM search.

A quick search at Pbone got me this for your distro:

http://www.pbone.net/index.php3/stat....i586.rpm.html

Installing an RPM of java,written for your distro will be much easier.

Yes, it can be done from the Sun downloads, but you have to update the path and know what you're doing. I munged through it in about twenty minutes, but that's only because I did the same in Windows recently. If you install manually, y ou'll have to update the PATH statement, and that's not easy in Linux. (It isn't supposed to be easy,either.)
 
Old 05-04-2005, 09:41 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally posted by duffmckagan
NO, It does not.
If java does not return a version then I am sure you made an error in creating the symlink I suggested. Look in /opt, if there is a file called java delete it. Create a symlink as in step 6 above with the right jre version e.g.
Code:
#ln -s /usr/java/jre-1.5.0_01/ /opt/java
Check in /usr/java for the right path to your jre. When thats done, log out and back in again. Hopefully this time it will work properly.
 
Old 05-04-2005, 09:53 AM   #14
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 49
I logged in as root and then went to

/opt

Now there was a file called java as you told me Reddazz.

Now, I deleted it.

When I tried to create a symlink , it told me that the specified file already exists.

So, do i now need to delete the one in /usr/bin?

One more thing.
the java does exist in /usr/java
 
Old 05-04-2005, 10:12 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
No you need to delete the one in /opt. Do as root "rm -rf /opt/java" and then recreate the symlink using the instructions in my previous post. What is the version of java in /usr/java. If I have the exact version I can rewrite the script so that you don't have to mess around with creating the symlink if you keep having problems.
 
  


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
Problem Installing Azureus athanman Linux - Software 3 11-20-2005 03:42 PM
installing Azureus? greythorne Ubuntu 1 10-29-2005 11:12 PM
Error Installing Azureus PapaSmurf88 Mandriva 4 05-12-2005 06:07 PM
Installing Azureus on my suselinux9.2 Moroshni Linux - Software 3 04-11-2005 06:40 PM
Installing Azureus/Bittorrent jc_firestorm Linux - Software 1 03-13-2005 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:16 AM.

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