해결된 질문
작성
·
12K
0
안녕하세요
터미널에서 빌드할때 아래와 같은 에러가 나서 문의드립니다
jdk 11로 잘 설치되어 있는걸 확인했고 intellij에서는 잘 됩니다ㅠ
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x73ca284b) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x73ca284b
* 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
3
감사합니다!
환경변수세팅을 했는데 터미널 실행할때마다 해줘야하나봐요 ㅠㅠ
기본은 16버전으로 되어 있어서 11버전과 맞지 않아 나는 에러였습니다.
덕분에 빨리 해결했어요~!