Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
来源:互联网 发布:有什么好吃的零食知乎 编辑:程序博客网 时间:2024/04/20 02:11
在eclipse下,使用tomcat插件时,一切都设置妥当,包括classpath,java_home都设置好了,可是访问.jsp文件时,报告以下错误:
Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
解决方案网址:http://blog.csdn.net/Think2Exist/archive/2004/10/08/128411.aspx
经过探索发现问题出在Eclipse 3启动Tomcat时的Classpath上,tools.jar在Tomcat启动时需要,但现在找不到(事实上系统变量Classpath已经指明了 tools.jar所在),系统是去JRE的lib下找,可是这个包默认应该在[JDK]的lib下(注:用的是JDK build 1.4.2_03-b02),问题的解决很简单,只要复制[JDK].jar到[JRE]下即可。
解决方案有二:
1.找到jdk的lib目录下的tools.jar,拷贝到tomcat的common目录下即可
2. 打开eclipse,在菜单windows->preferences->tomcat->jvm settings,在classpath栏下添加tools.jar即可。
Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
解决方案网址:http://blog.csdn.net/Think2Exist/archive/2004/10/08/128411.aspx
经过探索发现问题出在Eclipse 3启动Tomcat时的Classpath上,tools.jar在Tomcat启动时需要,但现在找不到(事实上系统变量Classpath已经指明了 tools.jar所在),系统是去JRE的lib下找,可是这个包默认应该在[JDK]的lib下(注:用的是JDK build 1.4.2_03-b02),问题的解决很简单,只要复制[JDK].jar到[JRE]下即可。
解决方案有二:
1.找到jdk的lib目录下的tools.jar,拷贝到tomcat的common目录下即可
2. 打开eclipse,在菜单windows->preferences->tomcat->jvm settings,在classpath栏下添加tools.jar即可。
0 0
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
- Unable to find a javac compiler; 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; 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; 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; 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 / Unable to find a javac compiler 的问题
- 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
- Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK解决
- Ant Unable to find a javac compiler Perhaps JAVA_HOME does not point to the JDK 解决办法
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- com.sun.tools.javac.Main is not on the classpath.错误解决方法
- ant中com.sun.tools.javac.Main is not on the classpath问题的解决方案
- ant报错: 解决com.sun.tools.javac.Main is not on the classpath的问题
- [置顶] 基于POSTFIX的服务器框架的服务器程序设计
- [置顶] 快速创建你的服务器程序--single进程池模型
- [置顶] 协作半驻留式服务器程序开发框架 --- 基于 Postfix 服务器框架改造
- Spring MVC之@RequestMapping 详解
- [置顶] 再谈线程局部变量
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
- [置顶] 使用 acl_cpp 的 HttpServlet 类及 google 的 ctemplate 库编写 WEB 应用
- [置顶] acl_cpp 的 rpc 相关类整合阻塞及非阻塞过程
- [置顶] acl 框架库简介
- 什么是编程语言
- 学习C++的50条建议!
- 存储系统的缺失与弥补方案
- spring中annotition配置学习
- 她一直都在