Sunday, June 26, 2005

Installing Java on Linux

Add deb [WWW] ftp://ftp.tux.org/java/debian/ sarge non-free

' mib...
mas tama yata to, kesa yung ftp.tux..

command line way
add the following to /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ hoary universe main restricted multiverse

Gui way

1. System > Administration > synaptics package manager
2. Settings > Repositories > click Add > click both Community Maintained (universe) and Non Free Multi Verse

' ...mib

to /etc/apt/sources.list

and then do

' mib...
' hindi ko iinstall 1.4. yung latest 1.5 n lng iinstall ko
apt-get install j2re1.4 java-common

' instead i download jdk 1.5, look in http://java.sun.com/
jdk-1_5_0_04-nb-4_1-linux.bin
' ...mib

a complete description for newbies is here:

[WWW]


Download Sun's JDK (.bin format) from [WWW] http://java.sun.com/j2se/1.5.0/download.jsp. Choose either the JDK or JRE link. Execute these commands (assuming you downloaded the file 'jdk-1_5_0_02-linux-i586.bin'):


% sudo apt-get install java-package fakeroot
% fakeroot make-jpkg jdk-1_5_0_04-nb-4_1-linux.bin
% sudo dpkg -i sun-j2sdk1.5_1.5.0+update02_i386.deb

' mib...
' however instead of following those above 3 instruction.
' i skip in creating a debian package, as i really have a hard time, figuring out
' how to resolve the following(when issuing a fakeroot make-jpkg.. instruction):

' Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh

' i just proceed with the following
' chmod 755 jdk-1_5_0_04-nb-4_1-linux.bin
' ./jdk-1_5_0_04-nb-4_1-linux.bin'
' chmod 544 jdk-1_5_0_04-nb-4_1-linux.bin

installation:

% java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

The "/java-web-start.applications: Permission denied" messages can be ignored when building the package. The above also works with jdk-1_5_0_03-linux-i586.bin under Hoary. -- rcs 07-May-2005

If you have "No matching plugin was found." problem on Breezy, have a look at [WWW] http://www.ubuntuforums.org/showpost.php?p=212313&postcount=2 (marcin, June-2005)

0 Comments:

Post a Comment

<< Home