LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Req:- how to Install java in mandrake 10.1 (https://www.linuxquestions.org/questions/linux-newbie-8/req-how-to-install-java-in-mandrake-10-1-a-360751/)

bihag 09-06-2005 11:18 AM

Req:- how to Install java in mandrake 10.1
 
i m just install mandrake 10.1 ...

i want to install java in mandrake plz help me .....

i m downloaded the file jdk1.3.1_16 for linux from sun's site ......

how could i install and set path as a root user .......

i download instruction from sun's site but that's not enogh and not step by step

plz instruct me

wait for answer ......

thanking u,
Bihag

IBall 09-06-2005 11:32 PM

1) I assume you downloaded the file with a .bin extension. Simply open a terminal, and type ./jdk1.3.1_16.bin - or whatever the name of the file is. You will need to be root, an install it to /usr/local.

2) Edit the file /etc/profile as root. Add the line
Code:

export PATH=$PATH:/usr/local/java/bin
Where you have installed java to /usr/local/java.

3) Log out and back in again, and try the command
Code:

java -version
, and you should get Java's version printed on the screen.

Just some queries:
1) I hope you're not running as root all the time. This is really bad - set up a normal user, and only use the root account when you really need to.

2) Why are you installing Java 1.3? I think the latest version is 1.5.

I hope this helps
--Ian

floppywhopper 09-07-2005 01:04 AM

Go here

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

download the file to a folder, it may take a while on dial-up
then using the Media Manager in the MCC
add that folder to the list of media
then go to install software
and install as normal

any questions just ask
floppy

bihag 09-07-2005 03:11 AM

Thanking u very much
 
thanking u very much it will work ..... :newbie: :D


All times are GMT -5. The time now is 08:50 PM.