๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Error

NoClassDefFoundError [IntelliJ]

by ๐Ÿ’œautumn 2021. 1. 29.

์ข…์ข… ์ธํ…”๋ฆฌ์ œ์ด์—์„œ ํ”„๋กœ์ ํŠธ์˜ Dependency๋ฅผ ์ฝ์–ด์˜ค์ง€ ๋ชปํ•˜๋Š” ๊ฒฝ์šฐ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค.

 

 

์ •ํ™•ํ•œ ์ด์œ ๋‚˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ์ œ์‹œํ•  ์ˆ˜ ์—†์ง€๋งŒ,

๊ฐ€์žฅ ๋จผ์ € ํ•  ์ผ์€ "์ด๋ฏธ ํ–ˆ๋”๋ผ๋„!"

reimport, clean, build ๊ทธ๋ฆฌ๊ณ  restart!

 

 

 

์ด๋ ‡๊ฐœ ํ–ˆ๋Š”๋ฐ๋„ ์—ฌ์ „ํžˆ ์ด๋Ÿฐ ๋ฌธ์ œ๊ฐ€ ์ง€์†๋˜๋Š” ๊ฒฝ์šฐ์—๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •ํ•ด์ค€๋‹ค.

Run/Debug Cofiguration

→ ๋™์ž‘ ๋ชจ๋“ˆ ์„ ํƒ [์™ผ์ชฝ์—์„œ - ๋ชจ๋‘์ธ ๊ฒฝ์šฐ ๋ชจ๋‘ ๋ฐ”๊ฟ”์ฃผ๋Š” ์ž‘์—…ํ•˜๋ฉด OK]

 include dependencies with "Provided" Scope ์ฒดํฌ

'Error' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Port already in use ์—๋Ÿฌ  (0) 2020.11.19

๋Œ“๊ธ€