新手关于的JSP问题

由 我爱你 在 05-12-2004 08:47 发表:

新手关于的JSP问题

昨天我安装了j2sdk和Resin。并且用探针测试了。也没有问题。

但是运行JSP程序的时候出现如下错误。

500 Servlet Exception

Resin can't load com.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

1<java compiler="javac"></java>

or jikes.

java.lang.ClassNotFoundException: com.sun.tools.javac.Main

Resin-3.0.6 (built Tue, 20 Jan 2004 09:46:57 PST)

请问大侠们,这是怎么回事,应该怎样解决。

谢谢~~


由 浪无痕 在 05-12-2004 09:19 发表:


我也想知道,帮你顶。


由 silver810212 在 05-12-2004 10:50 发表:


Resin can't load com.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.

java.lang.ClassNotFoundException: com.sun.tools.javac.Main

要设置JAVA_HOME和CLASSPATH变量

/etc/profile加入:

JAVA_HOME=/usr/local/java/

CLASSPATH=.:/usr/local/java/lib/dt.jar:/usr/local/java/lib/tools/jar

PATH=/usr/local/java/bin:$PATH

export PATH JAVA_HOME CLASSPATH

另外在resin.conf中也可以设置JAVA_HOME


Published At
Categories with 服务器类
Tagged with
comments powered by Disqus