본문 바로가기
Java관련/Intellij

process command finished with non-zero exit value 1

by devstep 2022. 5. 4.

인텔리제이 실행 에러

처음 프로젝트 셋팅하고 인텔리제이 실행 에러가 나는데 이럴때가 가장 난감하다.
왜인지는 나중에 정리해놓더라도 발생한 실행 에러와 해결 방법은 적어두자.

  • 에러 메시지
    process command finished with non-zero exit value 1
> Process 'command '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/Setting 메뉴 클릭(ctrl+alt+s)
  2. Build,Excutions,Deployment> Build Tools > Gradle 메뉴로 이동
  3. Build and run using와 Run tests using 을 IntelliJ IDEA로 변경
  4. Gradle JVM을 jdk11로 변경 (없으면 java11설치)

댓글