宝马3系轮胎:eclipse中使用tomcat问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/27 14:26:56
我在eclipse中使用tomcat来编写jsp程序运行时,系统报错:
exception :
org.apache.jasper.JasperException: Unable to compile class for JSP

root cause :
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
在eclipse的首选项中我已经指定了j2re1.5.0,请问这是怎么回事啊?应该怎么修改?我很着急,谢谢啦!

JRE中并不包含javac等编译命令,只有运行命令java
所以如果想用eclipse编译的话,必须指定jdk的位置
JAVA_HOME=JDK的位置

1:JDK出错
2:环境变量出错
3:tomcat出错

不是j2re1.5.0 要 jdk1.5