How do i install java on linux(xubuntu).

a7xnck

New Member
i nkow two ways, download and follow directions from java and my prob there is that it asks for root password which idk wat that is?

and 2) i copied and pasted the code into terminal and gives me all options like
d-donwload but odnt install
i-install
y-yes to all quieres

stuff like that, idc which way i have to go help would be appreciated
 
download the self extracting binary http://java.sun.com/javase/downloads/widget/jdk6.jsp

Code:
sh jdk-6u17-linux-i586.bin
cd jdk1.6.0_17/bin/
./java -version

you can install Java anywhere you want to but you must set your path to the jdk1.6.0_17/bin/ location.

Code:
vi ~/.profile
GG
o
PATH=$PATH:/home/<user name>/jdk1.6.0_17/bin/
export PATH
esc
x
source .profile
cd
java -version
 
Back
Top