We can find some reasons from below: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================= So you must set environment for the Axis in My Computer->Attributes->Enviroment.the details: JAVA_HOME = directory of your path.CLASSPATH = %JAVAHOME%/jre/...rt.jar;that's all ,Good luck.
activation.jar 需要这个包吗 我这里好像没有
好像找到了 为什么出错信息总是一样的呢 我的jdk的路径没错啊 郁闷~
jdk/..../tools.jar found not
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 这个信息一直都没有改变 我在jdk\lib下找到了tools.jar文件 其中有com\sun\tools\javac\Main.class文件 应该就是它了吧 我已经把它加到了classpath里 但是为什么还是出现上边的信息呢 请明白的朋友看一下!
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK=================
So you must set environment for the Axis in My Computer->Attributes->Enviroment.the details:
JAVA_HOME
=
directory of your path.CLASSPATH
=
%JAVAHOME%/jre/...rt.jar;that's all ,Good luck.
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
这个信息一直都没有改变 我在jdk\lib下找到了tools.jar文件 其中有com\sun\tools\javac\Main.class文件 应该就是它了吧 我已经把它加到了classpath里 但是为什么还是出现上边的信息呢 请明白的朋友看一下!
这样写对吗 是不是这里的问题?
Perhaps JAVA_HOME does not point to the JDKplease sure:
1.classpath
2.JAVAHOME=JDK install path.
把我的具体情况都说出来:
2000 professional 系统在E盘
安装j2sdk 装在 E:\j2sdk1.4.2_04
我看到在E:\program files下边也有一个java目录 里边是j2re1.4.2_04 这两个应该没弄错吧
再来看classpath:
CLASSPATH=.;E:\j2sdk1.4.2_04\lib\tools.jar;E:\j2sdk1.4.2_04\lib\dt.jar;
我一开始没有前边的.; 出现错误信息 后来看到上边兄弟的回复 加上 同样的信息
再来看JAVA_HOME:
JAVA_HOME=E:\j2sdk1.4.2_04是这样的吗 到底是哪里错了呢。
j2sdk1.4.2_04\lib下有tools.jar文件 其中有com\sun\tools\javac\Main.class文件
这应该就是提示找不到的那个文件吧!
为什么包含进去还是出错!