Search

Ubuntu์—์„œ JDK ์„ค์น˜ํ•˜๊ธฐ

Ubuntu์—์„œ JDK ์„ค์น˜ํ•˜๊ธฐ

apt ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ € ์‚ฌ์šฉ

apt ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ JDK๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๊ฐ€์žฅ ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ € ์—…๋ฐ์ดํŠธ

sudo apt update
Bash
๋ณต์‚ฌ

์„ค์น˜๊ฐ€๋Šฅํ•œ ์ž๋ฐ” ๋ฒ„์ „ ํ™•์ธํ•˜๊ธฐ

sudo apt list --upgradable openjdk-*
Bash
๋ณต์‚ฌ

jdk 17 ์„ค์น˜

sudo apt install openjdk-17-jdk
PowerShell
๋ณต์‚ฌ

AWS EC2 - Ubutnu ์—์„œ JDK ์„ค์น˜

sudo apt update
Bash
๋ณต์‚ฌ
sudo apt install openjdk-17-jdk
Bash
๋ณต์‚ฌ
java -version
Bash
๋ณต์‚ฌ