we must install java sdk in our computer, if we want to program java.
let us install j2sdk on linux :
1. download java sdk from sun website
(not java jre -- java runtime environment)
2. we'll get a file jdk-6u10-linux-i586.bin (general linux processor x86) or
jdk-6u10-linux-i586-rpm.bin(for redhat, fedora, suse, mandriva)
3. change access your file
chmod +x jdk-6u10-linux-i586.bin
4. then you execute that file dot bin
./ jdk-6u10-linux-i586.bin
4a. if you use a rpm file, after that command you must install with rpm :
rpm -i jdk-6u10-linux-i586-rpm.rpm OR
urpm -i jdk-6u10-linux-i586-rpm
5. edit your profile at /etc/profile , add your home java installation.
example :
JAVA_HOME = /usr/local/j2sdk/bin
JAVA_JRE = /usr/local/j2sdk/jre
export JAVA_HOME
export JAVA_JRE
6. logout from your computer, then login again.
7. test from prompt.
$javac >>>> for compile the java code program
or $java -version
your screen 'll like :
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
8. success
Install Postgresql Di Linux
17 years ago

No comments:
Post a Comment