티스토리 뷰

 

 

Error: could not find or load main class Main 이란 처음 보는 에러 발생

 

첫번째 삽질

Invalidate Caches / Restart 

 

 

두번째 삽질

Edit Configurations...

 

...

그리고 이 외의 숱한 삽질 끝에

 

폴더 이름에 special character 인  '/'를 넣어서 안됐던 것,,,  File I/O 라 생각없이 넣었던 것이 결국, 엄청난 시간낭비로,,

그래도 알아내서 다행

 

IntelliJ won't allow you to use the special character in the file path.

 

 

Reference

https://stackoverflow.com/questions/10654120/error-could-not-find-or-load-main-class-in-intellij-ide

'JAVA' 카테고리의 다른 글

Map - getOrDefault(), putIfAbsent() in Java  (0) 2019.07.23
Java IOException - Stream Closed  (0) 2019.07.19
Serialization example code in java  (0) 2019.07.17
for each  (0) 2019.07.13
Returning ArrayList from Method  (0) 2019.07.13