본문 바로가기

노력/웹 개발

IntelliJ 기본 클래스를 찾거나 로드할 수 없습니다.

새로운 프로젝트를 만들기 시작했습니다.

IntelliJ가 좋다고 하니 eclipse 대신 사용해보려고 하는데요.

 

처음 Spring Initializr로 프로젝트를 만들고 나서 한 번 프로젝트가 실행됐다가 재차 실행되지 않는 오류가 생겼습니다.

 


해결

프로젝트 경로 상의 문제였던 것으로 확인하였습니다.

D:\에서 C:\ 하위 폴더로 변경하였습니다.

 

아래 출처에 다양한 경우가 있으니, 같은 경우라면 확인해보세요 :)

https://stackoverflow.com/questions/42660125/java-lang-classnotfoundexception-when-running-in-intellij-idea/42660624#42660624

 

java.lang.ClassNotFoundException when running in IntelliJ IDEA

I creating a program to work with databases and I am getting the following error when compiling in IntelliJ IDEA. Does anyone why this is happening and how I could solve it?

stackoverflow.com