org.apache.jasper.JasperException:PWC6345:调用javac时出现错误。需要一个完整的JDK(不仅仅是JRE) [英] org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

查看:2261
本文介绍了org.apache.jasper.JasperException:PWC6345:调用javac时出现错误。需要一个完整的JDK(不仅仅是JRE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里发布这个问题之前:我抬头看了看

Before posting this question here: I looked up at

1) IDEA 11.1.4中的Glassfish 3.1.2.2:PWC6345:有调用javac时出错。需要完整的JDK(不仅仅是JRE)

2)如何为glassfish域指定jdk?

3) http://alvinalexander.com/blog/ post / java / fix-glassfish-jdk-path-problem-resolved

4) https://www.java.net//node/702274

5)PWC6345:有调用javac的错误。使用Jetty WTP插件在Jetty上部署JSP页面时出错

我可以在日食中打开glassfish管理窗口,但是当我试图运行我的项目,我得到这个烦人的错误:
org.apache.jasper.JasperException:PWC6345:调用javac时有错误。需要一个完整的JDK(而不仅仅是JRE)

I am able to open the glassfish admin window in eclipse, but when I am trying to run my project, I get this annoying error: "org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required"

我看了上面列出的帖子,但在我的情况下没有用...我有我的java环境集..

I looked at the above listed posts, but werent useful in my case...I have my java environment set..

但是他们没有解决我的问题。我仍然得到错误,在标题中,已经有一个问题张贴在类似的,但没有一个答案我需要....

But They Did not solve my problem. I still get the error as in the heading, there is already a question posted on a similar one, but doesnt have an answer I require....

推荐答案

这可能是m2clipse插件遇到的同样的问题:您必须告诉eclipse在启动Eclipse时使用JDK。只能在窗口>首选项上设置JDK / JRE不起作用。

That is probably the same problem encountered with the m2clipse plugin : You have to tell eclipse to use the JDK when launching Eclipse. Only setting the JDK/JRE on the Window>Preferences has no effect.

例如添加此参数:

C:\eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_20\bin\javaw

或编辑eclipse.ini文件以添加vm参数。

Or edit the eclipse.ini file to add the vm argument.

有很多可能性。检查此链接以获得正确的答案: m2eclipse:Eclipse在JRE中运行,但需要JDK

There are plenty of possibilities. Check this link to get the right answer : m2eclipse: Eclipse is running in a JRE, but a JDK is required

这篇关于org.apache.jasper.JasperException:PWC6345:调用javac时出现错误。需要一个完整的JDK(不仅仅是JRE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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