brunch

Mint OS에서 JAVA WEB 개발 환경 설정

리눅스 삽질기

by K의 단상

이전 화에 이어서 MintOS에서 Java 개발 환경 설정에 대하여 알아봅니다.


1. JDK 설치

기본적으로 MintOS는 Open JDK [1]가 설치되어 있습니다.

이를 제거하고 Oracle의 JDK 설치를 진행합니다.

Open JDK와 Oracle JDK 의 차이점

JDK 7 이후는 크게 다르지 않다고 합니다.


command :

#삭제

$ sudo apt-get purge openjdk*

#먼저 java.oracle.com에서 환경에 맞는 jdk파일을 받는다.

#개인적으로 rpm보다 tar 파일을 받아서 설치하는 것을 선호합니다.

#압축 해제

$ tar -xvzf jdk-8u101-linux-x64.tar.gz

#JAVA_HOME 추가 & PATH 설정 추가

$ vi /etc/profile

#마지막 줄에 다음을 추가

export JAVA_HOME="{JAVA_PATH}"

export PATH=$JAVA_HOME/bin:$PATH

#변경된 환경 파일 반영

$source /etc/profile


2. Eclipse 설치

다음에서 이클립스 download

이후 간단하게 GUI를 이용한 설치 진행


3. TOMCAT 설정

다음에서 Tomcat 8.5 download

이후 압축을 푼 다음, eclipse > Window > show View > Server > New > Server > Apache > tomcat v8.0 Server 을 선택

압축 푼 곳과 연결 처리



References

[1] Openjdk.java.net. (2016). OpenJDK. [online] Available at: http://openjdk.java.net/ [Accessed 17 Sep. 2016].

[2] What is the difference between JVM, J. (2016). What is the difference between JVM, JDK, JRE & OpenJDK?. [online] Stackoverflow.com. Available at: http://stackoverflow.com/questions/11547458/what-is-the-difference-between-jvm-jdk-jre-openjdk [Accessed 17 Sep. 2016].




keyword
작가의 이전글날짜 기준로그 삭제 와 웹 서비스 상태 확인