30
Java Coding Environment Installation & Execution guide 컴컴컴 컴컴컴컴컴 II Korea Univ.

Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Embed Size (px)

Citation preview

Page 1: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Java Coding Environment Installation & Execution guide

컴퓨터 프로그래밍 IIKorea Univ.

Page 2: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Steps

Library (Java JDK)

• Download• Installation

IDE (IntelliJ IDEA)

• Download• Installation• Initial Con-

figuration

Coding JAVA

• Make a Project

• Compile• Debug

Page 3: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

1. Library (Java JDK)

Page 4: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Download• http://www.oracle.com/technetwork/java/javase/downloads/index.html

Page 5: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Download

1. Accept license2. Download appropriate JDK

based on OS(normally Win x64 OR MAC)

Page 6: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Installation

Page 7: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Installation

1. Remember JDK Installation path

Page 8: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

2. IDE (IntelliJ IDEA)

Page 9: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

IntelliJ IDEA?

IntelliJ IDEA 는 JetBrains사에서 제작한 상용 자바 통합 개발 환경이다 .

줄여서 IntelliJ  혹은 IDEA 로도 불린다 .

The Most Intelligent Java IDE (Integrated Development Envi-ronment)Excel at enterprise, mobile and web development with Java, Scala and Groovy, with all the latest modern tech-nologies and frameworks available out of the box.

Page 10: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Download• https://www.jetbrains.com/idea/download/

Page 11: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Installation

Page 12: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Installation

Page 13: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Installation

Page 14: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Initial Configuration

Page 15: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Initial Configuration

Page 16: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Initial Configuration

Page 17: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

3. Coding JAVA

Page 18: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

Page 19: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

Page 20: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

1. Set a JDK installation path

Page 21: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

1. Select JDK

Page 22: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

Page 23: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Make a Project

1. Insert project name, location and package

Page 24: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Coding

Code edit area

Page 25: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Coding Click a play button will compile a code and execute it

Page 26: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Coding

Terminal area shows results of a code

Page 27: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Debugging

1. Click for setting a breakpoint

2. Click bug icon to compile a code and ex-ecute as a debug mode

Page 28: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

DebuggingProgram running stops at a breakpoint

Stepping through the pro-gram

Page 29: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Debugging

Examine the values stored in the objects

Page 30: Java Coding Environment Installation & Execution guide 컴퓨터 프로그래밍 II Korea Univ

Debugging

• Further reading• Debugging

• https://www.jetbrains.com/idea/help/debugging.html• Creating Breakpoints

• https://www.jetbrains.com/idea/help/creating-breakpoints.html