Liunx jdk installation tutorial

  

JDK installation

(installation software) jdk-1_5_0-linux-i586-rpm.bin

Start installation

#cp jdk -1_5_0-linux-i586-rpm.bin /usr/local/(mobile)

#cd /usr/local/(enter)

#chmod +x jdk-1_5_0-linux- I586-rpm.bin (indicating the permissions that can be executed for this file)

#./jdk-1_5_0-linux-i586-rpm.bin (decompression)

Configuring environment variables

#vi /etc/profile (edit)

Add

JAVA_HOME=/usr/java/jdk1.5.0

CLASSPATH=.:$JAVA_HOME/at the end Lib/tools.jar:$JAVA_HOME/lib/dt.jar

PATH=$JAVA_HOME/bin:$PATH

TOMCAT_HOME=/usr/local/tomcat

exprot JAVA_HOME CLASSPATH PATH TOMCAT_HOME

Save and exit

Use the source /etc/profile again after the modification to make the changes take effect.

Java –versionSee if it succeeds

Copyright © Windows knowledge All Rights Reserved