Eclipse中的glassfish似乎没有看到我的JDK [英] glassfish in eclipse doesn't seem to see my JDK
问题描述
GlassFish v3需要一个JDK 1.6而不是JRE。请在服务器属性运行时环境部分添加/选择
正确的JDK。
一群人有这个问题。当我在glassfish服务器运行时环境中单击编辑时,JRE为默认JRE,在首选项 - >服务器 - >运行时环境中。我点击下拉菜单并将其切换到我的JDK:java-6-openjdk,并且我解决了问题。不幸的是,我仍然得到完全相同的错误。这让我失去了如何google这个问题,因为其他人似乎已经通过将JRE切换到JDK来解决它。有没有人有任何想法?
Avtar
尝试设置Eclipse运行在JDK以及— Glassfish可能会选择其JDK。为此,编辑 eclipse.ini
,并添加行
-vm
path-to-javaw.exe-in-a-JDK
配置,我从来没有这个问题。
I am trying to get glassfish working in eclipse, and running into the JRE vs JDK error:
GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.
I googled around and it seems a bunch of people had this issue. Sure enough in preferences->Server-> Runtime Environment when I clicked edit on the glassfish server runtime environment the JRE was "default JRE". I clicked the dropdown menu and switched it to my JDK: java-6-openjdk and figured I had the problem solved. Unfortunately, I am still getting the exact same error. This leaves me at a loss on how to google the issue since everyone else seems to have resolved it by just switching the JRE to a JDK. Does anyone have any thoughts?
Avtar
Try setting Eclipse running in JDK as well — maybe Glassfish picks its JDK. To do this, edit eclipse.ini
, and add the line
-vm
path-to-javaw.exe-in-a-JDK
With this configuration, I never had this issue.
这篇关于Eclipse中的glassfish似乎没有看到我的JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!