개발도구/IDE

intellij 실행 시 finished with non-zero exit value 1 오류

노루아부지 2020. 12. 19. 12:39

intellij, Gradle 환경에서 프로젝트를 첫 실행 할 때 아래와 같은 오류가 발생하는 경우가 있습니다.

 

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

> Process 'command 'JDK경로/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.

 

이럴 경우 해결 방법은 아래와 같습니다.

 

  1. [File > Settings] 메뉴 클릭(단축키: ctrl + alt + s)
  2. [Build, Execution, Deployment > Build Tools > Gradle] 메뉴로 이동
  3. Build and run using을 IntelliJ IDEA로 변경
  4. Run tests using을 IntelliJ IDEA로 변경
  5. Gradle JVM을 jdk11로 변경(없다면 설치)

 

728x90
loading