SpringBoot

IntelliJ Gradle Project 'finished with non-zero exit value 1' 에러

심나라 2022. 8. 19. 22:13
728x90

IntelliJ에서 Gradle Project를 실행하다가 발생한 에러 입니다. 

Execution failed for task ':Application.main()'.
> Process 'command 'C:/Program Files/Java/jdk1.8.0_321/bin/java.exe'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

 

해당 에러는 IntelliJ의 설정을 수정해서 해결 했습니다.

IntelliJ File -> Settings 클릭하면 'Settings' 창이 열립니다.

Build, Execution, Deployment -> Build Tools -> Gradle 경로로 들어가서 'Build and run using' 부분을 'IntelliJ IDEA' 로 변경합니다. 

 

 

해당 설정을 변경하고 다시 Gradle Project를 실행하면 정상적으로 실행이 됩니다.

728x90