inblog logo
|
code-sudal
    Error

    1. 에러(블로그 4번 진행 중 발생후 해결)

    윤주헌's avatar
    윤주헌
    Aug 18, 2024
    1. 에러(블로그 4번 진행 중 발생후 해결)
    Contents
    해결오류가 난 이유 설명

    오류남.. 뭐지 이거는?

    아래 더 많이 뜬거는 save 메서드 위에 @Test 안 붙였다가 많이 뜨고
    notion image
    Error: Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain
    notion image
    테스트 어노테이션 붙인 후
    notion image

    해결

    참고 페이지
    [ERROR] Intellij Could not find or load GradleWorkerMain 에러해결
    검색어를 잘못 선택한건지 몰라도, 이 에러를 해결한다고 3시간이나 걸렸습니다.. 인텔리제이는 코드작성에는 편하지만, 책이나 강의를 따라할 때 세팅을 잘 못해서 발생하는 문제들은 해결이 어려운 것 같습니다. Intellij GradleWorkerMain Error Could not write standard input to Gradle Test Executor 1. java.io.IOException: 파이프가 닫히는 중입니다 ERROR: Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain 발생한 에러는 위와 같습니다. junit test를 시도할 때 발생했고, 코드 수행이나 로컬서버 구동에는..
    [ERROR] Intellij Could not find or load GradleWorkerMain 에러해결
    https://blue-mina.tistory.com/94
    [ERROR] Intellij Could not find or load GradleWorkerMain 에러해결
     
    notion image
    주석 처리 활성화
     
    notion image
    신기하게 해결이 됐음 오
    notion image
    notion image
    • 생각 왜 run tests using에서 Gradle하면 오류가 난지는 잘 모르겠다

    오류가 난 이유 설명

    • 그림
    notion image
    해결 방법에는 2가지가 있다
    1. 그레이들 라이브러리 업데이트
    1. 그냥 IntelliJ의 자체 프로그램으로 실행
     
    1.8 JDK 버전을 혹 다른 버전 JDK를 깐 적이 있다면 그에 맞는 툴이 실행되고 있을 것이다.
    하지만 지금 실행하는 JDK버전은 21 버전이고 환경 변수를 21버전으로 바꾸고 실행해서 코드는 잘 실행이 된다
    하지만 그레이들 라이브러리를 업데이트 하지 않았고 아직 업그레이드 되기 전 버전으로 사용하고 있어 오류가 난 것이다.
    Share article

    code-sudal

    RSS·Powered by Inblog