'tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE

用IntelliJ IDEA写网页,发现中文状态下输入框不跟随,度娘了一下,解决方法如下:

1 关闭IntelliJ IEDA,将IntelliJ IDEA安装目录下的jre64(前提是你安装的是64位版本)随便重命名
2 拷贝本地JDK安装目录下的jre文件夹到IntelliJ IDEA中去,重命名为jre64

3 以下步骤与度娘结果有所不同

其他教程说的是拷贝jdk/lib下的tools,且只拷贝到jre64文件下就行,但这样会报出的错误

tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE

参考文章:
windows 环境下运行idea提示 jdkRequired,'tools.jar' seems to be not in idea classpath...

碎碎念:如果有用,请诸君点个赞
更多问题,欢迎加群:584275290

你可能感兴趣的:('tools.jar' seems to be not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE)