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

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

问题描述

在这里发布问题有点新,所以请耐心等待.我最近必须安装 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 FilesJavajdk1.6.0_24;"并将我的 PATH 变量设置为%JAVA_HOME%in;".

Weird thing is I set my JAVA_HOME variable in my VM to 'C:Program FilesJavajdk1.6.0_24;' and my PATH variable to '%JAVA_HOME%in;'.

它说它是一个 jasper-compiler 错误......我确保在我的 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.

我也按照这些说明这里,添加jdkin的工具.jar 到 Eclipse 的 Ant 运行时全局条目

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

感谢任何帮助,我很难过.

Any help appreciated, I'm stumped.

推荐答案

嘿,我想通了,只要确保将 JDK 添加到 PATH 变量(即 javajdk...in),我也将其添加到我的 tomcatlib 文件夹中,并将其作为另一个变量添加到我的项目库中.

Hey I figured it out, just made sure you add to your JDK to your PATH variable (ie. javajdk...in) and I also added it to my tomcatlib folder and added it to my projects library as another variable.

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

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