๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ์ธ๊ณต๋ถ€/JAVA

[์ƒํ™œ์ฝ”๋”ฉ] JAVA1 - 2. ์˜จ๋ผ์ธ ์‹ค์Šต ํ™˜๊ฒฝ (+ ๋งฅ๋ถ์œผ๋กœ JAVA ์„ค์น˜ํ•˜๊ธฐ)

by ๐Ÿ‡๋ฐ•๋ด‰๋ด‰๐Ÿ‡ 2022. 9. 6.

 

 

์ƒํ™œ์ฝ”๋”ฉ JAVA1

-  2. ์˜จ๋ผ์ธ ์‹ค์Šต ํ™˜๊ฒฝ -

 


 

 

์ผ๋‹จ ํ•ด๋‹น ๊ฐ•์˜์˜ ๋ชฉ์ ์€ JAVA๋ผ๋Š” ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋ฐ˜์„ ๊ตฌ์ถ•ํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ ๋งŒ์•ฝ ๋‹น์žฅ ํ™˜๊ฒฝ์„ ๋งŒ๋“ค ์ˆ˜ ์—†๋Š” ์ƒํ™ฉ์ด๋ผ๋ฉด JDOODLE์ด๋ผ๋Š” ์‚ฌ์ดํŠธ๋ฅผ ํ†ตํ•ด JAVA๋ฅผ ํ•™์Šตํ•˜๋Š”๊ฒƒ์„ ์ถ”์ฒœํ•œ๋‹ค๊ณ  ํ•œ๋‹ค.

 

 

JDoodle - Online Compiler, Editor for Java, C/C++, etc

JDoodle is an Online Compiler, Editor, IDE for Java, C, C++, PHP, Perl, Python, Ruby and many more. You can run your programs on the fly online, and you can save and share them with others. Quick and Easy way to compile and run programs online.

www.jdoodle.com


JDK (Java Development Kit)

์šฐ๋ฆฌ๋Š” ์ž๋ฐ”๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์ „์— JDK๋ผ๋Š” ๊ฒƒ์„ ๋จผ์ € ์„ค์น˜ํ•˜๋Š” ๊ณผ์ •์„ ๊ฑฐ์ณ์•ผํ•˜๋Š”๋ฐ JDK๋Š” Java Development Kit์˜ ์•ฝ์ž๋กœ ๋ง๊ทธ๋Œ€๋กœ ์ž๋ฐ”๋ฅผ ์ด์šฉํ•ด์„œ ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ๊ฐœ๋ฐœํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋„๊ตฌ๋“ค์ด ํฌํ•จ๋˜์–ด ์žˆ๋Š” ํ‚คํŠธ๋ฅผ ์˜๋ฏธํ•œ๋‹ค.

 

JDK ์„ค์น˜ํ•˜๊ธฐ

 

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

 

 

JDK๋Š” ์˜ค๋ผํด์— ์ ‘์†ํ•ด์„œ ๋‹ค์šด์„ ์ง„ํ–‰ํ•ด์ฃผ๋ฉด ๋˜๋Š”๋ฐ Java SE๋ผ๊ณ  ์ ํ˜€์žˆ๋Š” ๊ฒƒ์œผ๋กœ ๋‹ค์šด์„ ์ง„ํ–‰ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

(JDK๋ฒ„์ „์€ ์ผ๋‹จ์€ ์‹ค์Šต์šฉ์œผ๋กœ ์‚ฌ์šฉ๋˜์–ด์งˆ ์˜ˆ์ •์œผ๋กœ ๊ทธ๋ ‡๊ฒŒ ์ค‘์š”ํ•˜์ง€ ์•Š๋‹ค๊ณ  ํ•˜๋‹ˆ ์‹œ๋Œ€์— ๋งž์ถฐ์„œ ๋‹ค์šด์„ ์ง„ํ–‰ํ•ด์ฃผ๋ฉด ๋˜๊ฒ ๋‹ค.)

 

๊ทธ๋ฆฌ๊ณ  ์™œ SE๊ฐ€ ๋”ฐ๋กœ ๋ถ™์—ฌ์ ธ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ•ด์„œ ์ฐพ์•„๋ณด๋‹ˆ SE๊ฐ€ Standard Edition์ด๋ผ๋Š” ์˜๋ฏธ๋กœ ๋ง๊ทธ๋Œ€๋กœ ๋”ฑ ํ‘œ์ค€์ด๊ธฐ ๋•Œ๋ฌธ์— ๊ฒ๋จน์ง€ ์•Š์•„๋„ ๋  ๊ฒƒ ๊ฐ™๋‹ค.

 

๋‚˜๋Š” macOS๋ฅผ ์„ ํƒํ•ด ๋‹ค์šด์„ ์ง„ํ–‰ํ•ด์ฃผ์—ˆ๋Š”๋ฐ ์ด๋•Œ ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ์ปดํ“จํ„ฐ์นฉ์ด ์‹ค๋ฆฌ์ฝ˜์นฉ์ด๋ผ๋ฉด(M1) Arm DMG๋ฅผ ํ†ตํ•ด์„œ ๋‹ค์šด๋กœ๋“œ๋ฅผ ์ง„ํ–‰ํ•ด์ฃผ๊ณ  ์ธํ…”์ด๋ผ๋ฉด x64 DMG๋ฅผ ํ†ตํ•ด์„œ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

์ œ๋Œ€๋กœ ์„ค์น˜๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ

JDK ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์ œ๋Œ€๋กœ ์„ค์น˜๊ฐ€ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ด์•ผํ•˜๋Š”๋ฐ command + space ๋ฅผ ๋ˆŒ๋Ÿฌ์„œ ํ„ฐ๋ฏธ๋„์— ์ ‘์†ํ•œ ๋‹ค์Œ์— "java -version" ๋‚˜ "javac -version"๋ฅผ ์ž…๋ ฅํ•œ ๋‹ค์Œ ์—”ํ„ฐํ‚ค๋ฅผ ๋ˆŒ๋ €์„๋•Œ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ค์ง€ ์•Š๊ณ  ๋ฒ„์ „์ •๋ณด์—๋Œ€ํ•ด ๋‚˜์˜จ๋‹ค๋ฉด ์ œ๋Œ€๋กœ ์„ค์น˜๊ฐ€ ๋œ ๊ฒƒ์ด๋‹ค.

 

์ฐธ๊ณ ๋กœ ํ„ฐ๋ฏธ๋„์— ์นœ ๋‚ด์šฉ์€ "๋‚ด ์ปดํ“จํ„ฐ์— ์žˆ๋Š” java์˜ ๋ฒ„์ „์ด ์–ผ๋งˆ์•ผ?"๋ฅผ ์˜๋ฏธํ•œ๋‹ค.

 

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€