Sponsored By
















리눅스(Linux) REDHAT 버전에서 자바설치 방법임.

 

 

  [orcl:~]$ getconf LONG_BIT  # 32bit/64bit 확인

  32

 

  [orcl:~]$ whoami

  oracle

 

  [orcl:~]$ java -version

 

  java version "1.6.0_18"

  Java(TM) SE Runtime Environment (build 1.6.0_18-b07)

  Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)

 

  [orcl:~]$ which java

 

  /usr/java/jdk1.6.0_18/bin/java

 

  # http://www.oracle.com/technetwork/java/javase/downloads/index.html에서 최신 jdk를 다운로드. 

    or wget 이용.!!!

 

  [orcl:~]$ su -

  Password: (보이지 않습니다.)

 

  [root@~]# mv /home/oracle/Desktop/jdk* /usr/java

  [root@~]# cd /usr/java

 

  [root@java]# ls -l

 

  [root@java]# chmod 755 jdk-*-linux-i586.tar.gz

 

  [root@java]# ls -l

 

  [root@java]# tar xvfz jdk-*-linux-i586.tar.gz

 

  [root@java]# exit

 

  [orcl:~]$ cd

 

  [orcl:~]$ vi .bash_profile ----적절하게 버전 수정

 

export JAVA_HOME=/usr/java/jdk1.8.0_65

 

 

  [orcl:~]$ . .bash_profile

  [orcl:~]$ java -version 

 

  java version "1.8.0_65"

  Java(TM) SE Runtime Environment (build 1.8.0_51-b17)

  Java HotSpot(TM) Server VM (build 25.25-b02, mixed mode)



Sponsored By















+ Recent posts