Thursday, July 01, 2004

Java 2 SDK

1. download java 2 sdk (j2sdk_1_4_2_04-linux-i586.rpm)
2. install paket tersebut
root# rpm -Uvh j2sdk_1_4_2_04-linux-i586.rpm
3. buat file jdk.sh
root# vi /etc/profile.d/jdk.sh
4. isikan ke dalam file tersebut beris berikut ini
export PATH="/usr/java/j2sdk1.4.2_04/bin/:$PATH"
export CLASSPATH="/usr/java/j2sdk1.4.2_04/lib/:/usr/java/j2sdk1.4.2_04/include/:."
5. kompilasi kode java kamu
root#javac hello.java