问题描述
我正在尝试使用刚刚解压缩的Glassfish 3.1.2.2在新安装的IDEA 11.1.4 Ultimate(Windows 7)中启动并运行我们的Mavenized Web应用程序。我在Eclipse中已经多次这样做了,但我不熟悉IDEA。
I am trying to get our Mavenized web application up and running in a freshly installed IDEA 11.1.4 Ultimate (Windows 7) under a freshly unzipped Glassfish 3.1.2.2. I have done this many times in Eclipse, but am not familiar with IDEA.
我可以很好地构建和部署它,但当我尝试使用JSP访问页面时我得到的内容:
I can build and deploy it just fine, but when I try to access pages with JSP-content I get:
PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Glassfish应用程序服务器条目添加了javax.ejb。 jar,javax.servlet-api.jar和javax.servlet.jsp-api.jar作为库。
The Glassfish Application Servers entry adds the javax.ejb.jar, javax.servlet-api.jar and javax.servlet.jsp-api.jar as libraries.
我已将项目SDK设置为指向完整的JDK结果in:
I have set the project SDK to point to a full JDK resulting in:
(似乎不包含带有javac的jar)
(which does not seem to include a jar with javac)
到目前为止我发现的IntelliJ教程没有提到这个问题。我的猜测是请开始使用此 JDK信息不会传递给Glassfish,所以它只是选择系统JRE。
The IntelliJ tutorials I've found so far, does not mention this problem. My guess would be that the "please start using this JDK" information is not passed on to Glassfish, so it just picks up the system JRE.
我错过了什么配置步骤?我不想编辑配置文件 - 如果我知道如何告诉它,我希望IntelliJ插件能够这样做。
What configuration step have I missed? I do not want to edit configuration files - I expect the IntelliJ plugin to do this if I know how to tell it to.
推荐答案
我得到了相同的通知,只是在管理端口 - >配置 - >服务器配置 - > JVM设置 - > Java Home中更改为C:\Program Files \ Java \\\\\\\\\\\\\\\\\\\\\\\\\\工作。
I got the same notification and just changed in admin port -> Configurations -> server-config -> JVM Settings -> Java Home as "C:\Program Files\Java\jdk1.8.0_72", and it started working.
这篇关于IDEA 11.1.4中的Glassfish 3.1.2.2:“PWC6345:调用javac时出错。需要完整的JDK(不仅仅是JRE)“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!