일요일, 5월 26, 2024
HomeLinuxubuntu java install

ubuntu java install

ubuntu java install

1. java jdk7 다운로드
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2. 압축해제

tar xf jdk-7u75-linux-x64.tar.gz

3.mv & ln

mv jdk1.7.0_75/ /usr/lib/jvm
ln -s /usr/lib/jvm/jdk1.7.0_75 /usr/lib/jvm/java

4./etc/profile

echo "##################################################################################" >> /etc/profile
echo "#  $WORK_DATE "                                                                     >> /etc/profile
echo "#  add environment variable "                                                       >> /etc/profile
echo "##################################################################################" >> /etc/profile
echo "JAVA_HOME=/usr/lib/jvm/java"                                                        >> /etc/profile
echo "export JAVA_HOME"                                                                   >> /etc/profile
echo "PATH=\$JAVA_HOME/bin:\$PATH"                                                        >> /etc/profile
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular