지원 서재
작성일
2023. 9. 19. 21:06
작성자
달빛오리

인텔리제이에서 다음과 같은 에러 출력

Execution failed for task ':JiwonSpringApplication.main()'.
> Process 'command 'C:\Program Files\Java\jdk-17\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.
> Get more help at https://help.gradle.org.

 

  1. 상단바에서 [File] - [Settings] 메뉴 클릭
  2. 왼쪽 리스트에서 [Build, Execution, Deployment] - [Build Tools] - [Gradle] 탭 클릭
  3. Build and run using과 Run tests using을 IntelliJ IDEA로 변경
  4. Gradle JVM을 설치 경로로 지정
  5. 설정 저장 후 스프링 프로젝트 재실행

 

위 에러는 대부분 인텔리제이에서 스프링 프로젝트 첫 실행 시에만 나타나는 에러로, 한번 설정해주면 다음에 다시 에러가 발생할 가능성 거의 없음