error: package com.sun.tools.javac.util does not exist

坚强是说给别人听的谎言 提交于 2019-11-30 11:24:57

This class is found in tools.jar, which is not part of the JRE.

I got this problem when I try to build kotlin/jvm with gradle, I want to post this to others new to jvm, since jdk-9, there is no tools.jar. setting a classpath is good to go.

JAVA_HOME= path_to_jdk

JRE_HOME= path_to_jre

PATH= ;%JAVA_HOME%\bin;%JRE_HOME%\bin

CLASSPATH=.;%JAVA_HOME%\lib;%JRE_HOME%\lib
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!