Unable to find a javac compiler;

ysixin
Unable to find a javac compiler;

在eclipse下,debug mode不能运行
提示错误:
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

我直接通过startup.sh启动tomcat后,可以正常运行

为何不能在debug mode下运行阿?  

tomcat版本:j2sdk1.4.2_17
eclipse 3.3
OS:UBUNTU

ysixin
已经搞定
在eclipse的tomcat插件中增加tools.jar,dt.jar的配置
preferences->tomcat->jvm settings->classpath中增加上述jar包