ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๋ฐ˜์‘ํ˜•

macbook ๊ธฐ๋ณธ ์ž๋ฐ”๋ฒ„์ „์„ ๋ณ€๊ฒฝํ•˜๊ณ  ์‹ถ์„๋•Œ sdkman์„ ์ด์šฉํ•˜์—ฌ ์‰ฝ๊ฒŒ ๋ณ€๊ฒฝํ• ์ˆ˜ ์žˆ๋‹ค.

โœ… SDKMAN์œผ๋กœ JAVA๋ฒ„์ „ ๊ด€๋ฆฌ

https://sdkman.io/

 

Home - SDKMAN! the Software Development Kit Manager

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.

sdkman.io

์—์„œ install๋กœ ๋“ค์–ด๊ฐ€์„œ ์„ค์น˜ ์ง„ํ–‰

 

#java ๋ฒ„์ „ ์กฐํšŒ (์„ค์น˜๋˜์—ˆ๋Š”์ง€ ํ˜„์žฌ ์‚ฌ์šฉํ•˜๊ณ ์žˆ๋Š” ์ž๋ฐ”๋ฒ„์ „์„ ์•Œ์ˆ˜ ์žˆ๋‹ค)
sdk list java

Available Java Versions for macOS ARM 64bit
================================================================================
 Vendor        | Use | Version      | Dist    | Status     | Identifier
--------------------------------------------------------------------------------
 Corretto      |     | 20           | amzn    |            | 20-amzn
               |     | 19.0.2       | amzn    |            | 19.0.2-amzn
               |     | 19.0.1       | amzn    |            | 19.0.1-amzn
               |     | 17.0.6       | amzn    |            | 17.0.6-amzn
               | >>> | 17.0.5       | amzn    | installed  | 17.0.5-amzn
               |     | 11.0.18      | amzn    | installed  | 11.0.18-amzn
               |     | 11.0.17      | amzn    |            | 11.0.17-amzn
               |     | 8.0.362      | amzn    |            | 8.0.362-amzn

#java ์„ค์น˜ Identifier ์ด๋ฆ„์„ ๋„ฃ์–ด์ฃผ๋ฉด ์„ค์น˜๊ฐ€ ๋œ๋‹ค
sdk install java 19.0.1-amzn

#java ์ž„์‹œ ์‚ฌ์šฉ (ํ˜„์žฌ ํ„ฐ๋ฏธ๋„์—์„œ์˜ ๊ธฐ๋ณธ๋ฒ„์ „์„ java19๋กœ ์‚ฌ์šฉํ•˜๊ฒ ๋‹ค๋Š” ๋ช…๋ น์–ด)
sdk use java 19.0.1-amzn

#default๋กœ ์‚ฌ์šฉ (ํ„ฐ๋ฏธ๋„ ์ƒ๊ด€์—†์ด ๊ธฐ๋ณธ java19์„ ์‚ฌ์šฉํ•˜๊ฒ ๋‹ค๋Š” ๋ช…๋ น์–ด)
sdk default java 19.0.1-amzn

#sdk current
#java -version
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2024/12   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
๊ธ€ ๋ณด๊ด€ํ•จ
๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (80)
๐Ÿ“บ Develop (0)
๐ŸŒ‹ Error Fixed (5)
๐Ÿ— Tool (5)
๐Ÿ’ป MacBook M1 (15)
๐Ÿ“ฆ ETC (1)

์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค.