설회 자바 세미나 진행을 위해 JDK 및 Eclipese 설치 가이드를 작성한다. 본래 내가 사용하는 IDE는 Eclipse가 아닌 IntelliJ이지만. IntelliJ의 특성상 프레임워크에 치중되어 있는 면이 다소 있고, 가장 대중적인 IDE는 Eclipse이며 강의에서도 Eclipse를 사용하였기 때문에 Eclipse로 진행하기로 결정하였다.
1. JDK(JAVA Development Kit) 설치
Download the Latest Java LTS Free
Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.
www.oracle.com
LTS 버전인 JDK 17을 설치한다.
설치가 완료되면 환경변수를 편집한다.
시스템 환경 변수 편집으로 들어간다.
jdk 설치 경로를 입력해준다.
다음으로 아래와 같이 Path 경로를 수정해준다.
확인을 누른 후, Cmd를 열어 버전을 확인한다.
2. Eclipse 설치
Eclipse Installer 페이지에 접속한다.
Eclipse Installer 2024-06 R | Eclipse Packages
Eclipse Installer 2024-06 R | Eclipse Packages
5 Steps to Install Eclipse We've recently introduced the Eclipse Installer, a new and more efficient way to install Eclipse. It is a proper installer (no zip files), with a self-extracting download that leads you through the installation process. For those
www.eclipse.org
Windows Installer 설치
Java Developers 설치
설치가 완료되면 LAUNCH를 눌러 실행한다.
작업경로를 설정한다. 기본 워크스페이스가 지정되어 있는데, 본인의 편의상 지정하면 된다.(Browse) 나는 다음과 같이 새 폴더를 생성해주었다.
Use this as the default and do not ask agein을 체크하면 항상 이 경로를 이용해 워크스페이스가 실행된다.
실행이 완료되면 위와 같으느 창이 나타나는데, 이는 Windows 11 이후 Windows Defender로 인해 성능 저하 문제가 일어나므로 이를 어떻게 할 것인지 설정하는 것이다. 앞으로 다룰 실습들에서는 크게 성능 문제가 없기도 하지만 Windows Defender 사용을 해제해주었다.
테스트 프로젝트를 생성한다.
Create module-info.java file은 패키지와 관련해 에러가 날 수 있어 굳이 체크하지 않는 것이 더 편하다.
우클릭을 통해 class 파일을 생성한다. 테스트 클래스이므로 public static void main(String[] args)를 체크해준다.
아래 예제 코드를 작성한다.
package test;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Ctrl + F11 단축키로 실행한다.
'설회' 카테고리의 다른 글
[Sulhoe] 2024. 11. 18 클래스 변수/추상 클래스/인터페이스/제네릭/예외처리 (1) | 2024.11.20 |
---|---|
[Sulhoe] 2024.10.29 상속 Upcasting/Downcasting 보충 설명 (0) | 2024.10.30 |
[Sulhoe] 2024.09.23 실습 코드 (0) | 2024.09.23 |