在VM中运行J2EE Eclipse-无法找到Javac编译器 [英] Running J2EE Eclipse in a VM - Unable to find a javac compiler

查看:42
本文介绍了在VM中运行J2EE Eclipse-无法找到Javac编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kinda在这里发布新问题,请多多包涵.我最近必须安装XP VM才能运行需要使用Oracle 10g客户端的程序.我设置了tomcat服务器,当我浏览目录并启动.jsp文件时,出现此错误

Kinda new posting up questions here so bear with me. I had to install a XP VM recently in order to run a program that required use of an Oracle 10g client. I setup my tomcat server and when I went through the directory and started the .jsp file, I got this error

2011-02-22 09:13:01,291 ERROR (org.apache.jasper.compiler.Compiler:394) - Javac exception 
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

奇怪的是我将VM中的JAVA_HOME变量设置为"C:\ Program Files \ Java \ jdk1.6.0_24;"而我的PATH变量为'%JAVA_HOME%\ bin;'.

Weird thing is I set my JAVA_HOME variable in my VM to 'C:\Program Files\Java\jdk1.6.0_24;' and my PATH variable to '%JAVA_HOME%\bin;'.

它说这是一个jasper-complier错误...我确保在我的eclipse库路径中添加了几个TOMCAT_HOME变量,这些变量查看了jasper-compiler,jasper-runtime,jsp-api.jar和servlet-api .jar位于我的tomcat服务器文件夹中.

It says that its a jasper-complier error... I made sure to add several TOMCAT_HOME variables in my eclipse library path that looked at the jasper-compiler,jasper-runtime,jsp-api.jar, and servlet-api.jar located in my tomcat server folder.

我还遵循了此处的说明,该状态指出要添加jdk \ bin的工具.jar到Eclipse的Ant运行时全局条目

I also followed these instructions here, that state to add the jdk\bin's tools.jar to Eclipse's Ant runtime global entries

任何帮助表示赞赏,我很困惑.

Any help appreciated, I'm stumped.

推荐答案

嘿,我想通了,只需确保将JDK添加到PATH变量(即java \ jdk ... \ bin)中,我也将其添加到我的tomcat \ lib文件夹中,并将其作为另一个变量添加到我的项目库中.

Hey I figured it out, just made sure you add to your JDK to your PATH variable (ie. java\jdk...\bin) and I also added it to my tomcat\lib folder and added it to my projects library as another variable.

这篇关于在VM中运行J2EE Eclipse-无法找到Javac编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆