找不到com.sun.tools.javac.Main的解决办法
2008-05-15 10:02
197 查看
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
使用resin在eclipse里调试时终于解决了这个问题了!原因其实很简单:
右键:properties-->librares-->选中jre edit-->选中alternate jre
明白了吧:原来这里配的是jre
点installed jres...
然后把tools.jar那几个包加上就ok了!
今天,在eclipse2.1中用run ant运行ppig写的ant脚本编译学习日记文档时,发现通不过,报找不到com.sun.tools.javac.main;但不在eclipse2.1环境中在dos命令行窗口中执行能通过。最后,在windows->preferences->ant->Runtime->Classpath->Add Jars中,添加了jdk下面的/lib/tools.jar后,编译通过。原来com.sun.tools.javac.Main在这个tools.jar中。
使用resin在eclipse里调试时终于解决了这个问题了!原因其实很简单:
右键:properties-->librares-->选中jre edit-->选中alternate jre
明白了吧:原来这里配的是jre
点installed jres...
然后把tools.jar那几个包加上就ok了!
今天,在eclipse2.1中用run ant运行ppig写的ant脚本编译学习日记文档时,发现通不过,报找不到com.sun.tools.javac.main;但不在eclipse2.1环境中在dos命令行窗口中执行能通过。最后,在windows->preferences->ant->Runtime->Classpath->Add Jars中,添加了jdk下面的/lib/tools.jar后,编译通过。原来com.sun.tools.javac.Main在这个tools.jar中。
相关文章推荐
- 找不到com.sun.tools.javac.Main的解决办法
- 【问题解决】找不到或无法加载主类 com.sun.tools.javac.Main
- 'com.sun.tools.javac.Main',not found的解决办法
- 关于安装JDK不当--找不到或无法加载主类 com.sun.tools.javac.Main问题
- unable to find javac compiler;com.sun.tools.javac.Mainisnotontheclasspath的问题的解决
- 安装JDK不当--找不到或无法加载主类 com.sun.tools.javac.Main
- javac找不到或无法加载主类 com.sun.tools.javac.Main
- ant报错: 解决com.sun.tools.javac.Main is not on the classpath的问题
- 亲测!JDK环境变量设置——或找不到或无法加载主类con.sun.tools.javac.Main的问题解决
- 安装JDK不当--找不到或无法加载主类 com.sun.tools.javac.Main
- java环境变量设置 找不到或无法加载主类 com.sun.tools.javac.Main
- javac 找不到或无法加载主类 com.sun.tools.javac.main的解决方案
- java 找不到或无法加载主类 com.sun.tools.javac.Main
- 安装JDK不当--找不到或无法加载主类 com.sun.tools.javac.Main
- 解决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的问题
- 错误;找不到或无法加载主类 com.sun.tools.javac.main的解决方案
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 安装JDK不当--找不到或无法加载主类 com.sun.tools.javac.Main