现在在安装了JRE后,运行httpd后,提示: 500 Servlet Exception Resin can't load sun.tools.javac.Main. Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK. You can either add tools.jar to the classpath or change the compiler to an external one with <java compiler='javac'/> or jikes.java.lang.ClassNotFoundException: sun.tools.javac.Main我查看了JAVA_HOME下的lib目录,确实没有发现tools.jar,只有j2eetools.jar,我该怎么做呢?谢谢
你装了几个东西呢? 你的环境有点乱 下面是个.bat文件。 你运行一下好了。rem 设置系统信息 set JAVA_HOME=C:\jdk130 rem 以下不用修改 set path=%path%;%JAVA_HOME%\bin set Classpath=%classpath%;%JAVA_HOME%\lib\tools.jar
CLASSPATH=%JAVA_HOME%\lib\tools.jar
PATH=%JAVA_HOME%
运行httpd,提示在D:\JDK1.3中找不到可执行文件。在我下载的JDK中目录LIB下没有tools.jar文件啊,是怎么回师?
谢谢。
运行httpd,提示在E:\JDK1.3中找不到可执行文件。在我下载的JDK中目录LIB下没有tools.jar文件啊,是怎么回师?
谢谢。
500 Servlet Exception
Resin can't load sun.tools.javac.Main. Usually this means that the JDK
tools.jar is missing from the classpath, possibly because of using a JRE
instead of the JDK. You can either add tools.jar to the classpath or change
the compiler to an external one with <java compiler='javac'/> or jikes.java.lang.ClassNotFoundException: sun.tools.javac.Main我查看了JAVA_HOME下的lib目录,确实没有发现tools.jar,只有j2eetools.jar,我该怎么做呢?谢谢
你的环境有点乱
下面是个.bat文件。
你运行一下好了。rem 设置系统信息
set JAVA_HOME=C:\jdk130
rem 以下不用修改
set path=%path%;%JAVA_HOME%\bin
set Classpath=%classpath%;%JAVA_HOME%\lib\tools.jar
java.lang.ClassNotFoundException: sun.tools.javac.Main2.设置环境变量后,JAVA_HOME=c:\jdk1.3.1
RESIN_HOME=e:\resin-2.1.4
CLASSPATH=c:\jdk1.3.1\lib\tools.jar
运行httpd,提示:
Can't find java executable in c:\jdk1.3.1这是为什么?不知道我把现象描述的清楚了吗?
BTW:我查看了c:\jdk1.3.1\lib目录下的文件,里面有j2ee.jar,j2eetools.jar,就是没有发现tools.jar,所以,我想我设置:
CLASSPATH=c:\jdk1.3.1\lib\tools.jar
可能有问题吧,期待你们能帮我看看,谢谢。