intellij 실행 시 finished with non-zero exit value 1 오류
2023. 7. 16. 10:17ㆍ카테고리 없음
반응형
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.
이럴 경우 해결 방법은 아래와 같습니다.
- [File > Settings] 메뉴 클릭(단축키: ctrl + alt + s)
- [Build, Execution, Deployment > Build Tools > Gradle] 메뉴로 이동
- Build and run using을 IntelliJ IDEA로 변경
- Run tests using을 IntelliJ IDEA로 변경
- Gradle JVM을 jdk11로 변경(없다면 설치)

반응형