解决Perhaps JAVA_HOME does not point to the JDK.
来源:互联网 发布:网页淘宝怎么收藏店铺 编辑:程序博客网 时间:2024/05/01 23:47
错误提示:
com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:/Program Files/Java/jre1.8.0_73"
原来直接删除过Java,后来重新安装后出现各种各样的问题,今天再用cocos打包Android时,提示没有指向JDK,而指向了jre。首先想到的是检查环境变量,发现没有问题。然后突然想到,既然jdk指向了一个错误的路径,那么就把正确的文件放到错误的路径下就可以了。
解决:
直接将C:/Program Files/Java/jdk1.8.0_73/lib中的tools.lib拷贝到C:/Program Files/Java/jre1.8.0_73/lib中即可解决问题。
阅读全文
0 0
- 解决Perhaps JAVA_HOME does not point to the JDK.
- Perhaps JAVA_HOME does not point to the JDK
- Perhaps JAVA_HOME does not point to the JDK的解决方法
- Perhaps JAVA_HOME does not point to the JDK的解决方法
- Perhaps JAVA_HOME does not point to the JDK
- Ant出错-Perhaps JAVA_HOME does not point to the JDK
- Perhaps JAVA_HOME does not point to the JDK
- Perhaps JAVA_HOME does not point to the JDK
- Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK解决
- Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK
- 错误处理 Perhaps JAVA_HOME does not point to the JDK. It is currently set to ....
- Ant Unable to find a javac compiler Perhaps JAVA_HOME does not point to the JDK 解决办法
- MyEclipse中运行Ant出错:Perhaps JAVA_HOME does not point to the JDK
- Perhaps JAVA_HOME does not point to the JDK问题 (JDK1.6.0+ Tomcat5.0 时出现)
- JAVA_HOME does not point to the JDK
- com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK.
- Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK异常产生原因和解决方法。
- java动态代理原来及解析
- Java NIO系列教程(七) FileChannel
- linux基本知识-命令基本格式及文件处理命令
- php设计模式--单例模式
- Java NIO系列教程(八) SocketChannel
- 解决Perhaps JAVA_HOME does not point to the JDK.
- CXF+Spring+Tomcat简明示例
- Python 代码规范小结
- Java NIO系列教程(九) ServerSocketChannel
- 用TensorFlow构建基础的神经网络(三):AlexNet
- matlab2c使用c++实现matlab函数系列教程-cat函数
- java毕向东学习笔记——day10
- 写代码怎能不会这些Linux命令?
- Java NIO系列教程(十) Java NIO DatagramChannel