LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 873|回复: 5

新手关于的JSP问题

[复制链接]
发表于 2004-5-12 08:47:30 | 显示全部楼层 |阅读模式
昨天我安装了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 <java compiler='javac'/>
or jikes.

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


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


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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-5-12 09:19:44 | 显示全部楼层
我也想知道,帮你顶。
发表于 2004-5-12 10:50:49 | 显示全部楼层
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/binPATH

export PATH  JAVA_HOME CLASSPATH
另外在resin.conf中也可以设置JAVA_HOME
 楼主| 发表于 2004-5-12 14:01:06 | 显示全部楼层
我这样设置了的呀。
可能是没有设置正确。
谢谢silver810212
 楼主| 发表于 2004-5-13 09:00:35 | 显示全部楼层
郁闷。昨天回家,什么都没有改,运行出错的那段程序。却又可以了。

超级郁闷~~
发表于 2004-5-13 14:13:59 | 显示全部楼层
修改配置时 没有当时另其生效
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表