1. JAVA

1-1) JAVA 다운로드

- 오라클 홈피에 m1 arm 버전이 없어서 azul 에서 다운!

- .dmg 파일로 설치하면 파일 경로 설정해줄 필요없이 설치됨

- /Library/Java/JavaVirtualMachines/

 

https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk 

 

Downloads

Download Azul Platform Prime Azul Platform Prime extends Core, adding unique Azul innovations to improve the runtime characteristics of Java workloads. Azul Platform Prime delivers added performance, scale, consistency, and efficiency to Java applications,

www.azul.com

 

1-2) JAVA 환경 변수설정(JAVA_HOME, PATH )

-현재 사용하고 있는 쉘에 따라 각각의 해당 설정 파일 수정

 

- 현재 사용 중인 쉘 출력

$ echo $SHELL        

 

- Shell 설정 파일 위치

zsh   : ~/.zshrc

bash : ~/.bash_profile

 

- 설정 파일 수정

$ vim ~/.zshrc

#export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
export PATH=${PATH}:$JAVA_HOME/bin

$ source ~/.zshrc

 

 

1-3) JAVA 설치확인

$ javac -version

$ java -version

 

 

2. MAVEN

-java 프로젝트 빌드 자동화 툴

2-1) MAVEN 다운로드

https://maven.apache.org/download.cgi

 

Maven – Download Apache Maven

Downloading Apache Maven 3.8.4 Apache Maven 3.8.4 is the latest release and recommended version for all users. The currently selected download mirror is https://dlcdn.apache.org/. If you encounter a problem with this mirror, please select another mirror. I

maven.apache.org

$ wget https://dlcdn.apache.org/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz --no-check-certificate

$ tar xvfz apache-maven-3.8.3-bin.tar.gz

 

 

2-2) MAVEN 환경 변수 설정

$ vim ~/.zshrc

export MAVEN_HOME=/Users/ahn/dev_tools/apache-maven-3.8.3
export PATH=${PATH}:$JAVA_HOME/bin:$MAVEN_HOME/bin

$ source ~/.zshrc

 

2-3) MAVEN 설치 확인

$ mvn -version

 

 

3. TOMCAT

3-1) Tomcat 다운로드

http://tomcat.apache.org/download-80.cgi

 

Apache Tomcat® - Apache Tomcat 8 Software Downloads

Welcome to the Apache Tomcat® 8.x software download page. This page provides download links for obtaining the latest versions of Tomcat 8.x software, as well as links to the archives of older releases. Unsure which version you need? Specification versions

tomcat.apache.org

$ wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.72/bin/apache-tomcat-8.5.72.tar.gz --no-check-certificate

$ tar xvfz apache-tomcat-8.5.72.tar.gz

 

3-2) Tomcat 사용법

서버 켜기

$ /Users/ahn/dev_tools/apache-tomcat-8.5.72/bin/startup.sh

서버 동작 확인->http://localhost:8080/ 

 

서버 끄기

$ /Users/ahn/dev_tools/apache-tomcat-8.5.72/bin/shutdown.sh

 

4. IntelliJ IDEA

4-1) IntelliJ IDEA 다운로드

 

-이메일로 학생인증

https://www.jetbrains.com/ko-kr/community/education/#students

 

무료 교육용 라이선스 | 커뮤니티 지원

 

www.jetbrains.com

 

-Ultimate (Apple sillicon) 버전으로 다운로드, 라이센스 인증

 

5. Spring 프로젝트 생성

5-1) IntelliJ IDEA 에서 스프링 프로젝트 생성

https://kiki-100.tistory.com/143

 

IntelliJ spring 프로젝트 생성

1. Maven 프로젝트에서 spring 추가 [New Project] [Maven] - [SDK : Azul zula jdk로 자동 설정되어 있음] - [Next] Groupid - 프로젝트 식별자(프로젝트의 큰 틀?) - 일반적으로 회사의 도메인을 거꾸로 사용..

kiki-100.tistory.com

 

+ Recent posts