문제점

> 새로운 Package를 만들고 그 안에 java 를 생성해서 Run을 하였는데, 다음과 같은 에러가 발생했습니다.

 

해결 방법

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을 설치한 JDK로 변경

 

참고 사이트

https://yjh5369.tistory.com/entry/intellij-%EC%8B%A4%ED%96%89-%EC%8B%9C-finished-with-non-zero-exit-value-1-%EC%98%A4%EB%A5%98

 

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

intellij, Gradle 환경에서 프로젝트를 첫 실행 할 때 아래와 같은 오류가 발생하는 경우가 있습니다. Execution failed for task ':DemoSpringApplication.main()'. > Process 'command 'JDK경로/bin/java.exe''..

yjh5369.tistory.com

 

+ Recent posts