🚨 Error

[IntelliJ Error] finished with non-zero exit value 1

seongit 2022. 2. 21. 21:43

에러메시지 

Execution failed for task ':DemoSpringApplication.main()'.

> Process 'command 'JDK경로/bin/java.exe'' finished with non-zero exit value 1

 

해결방법

  1. [File > Settings] 클릭
  2. [Build, Execution, Deployment > Build Tools > Gradle] 메뉴로 이동
  3. Build and run using -> IntelliJ IDEA
  4. Run tests using -> IntelliJ IDEA
  5. Gradle JVM -> JAVA_HOME