eclipse中的glassfish似乎没有看到我的JDK

栏目: Java · 发布时间: 6年前

内容简介:翻译自:https://stackoverflow.com/questions/7638748/glassfish-in-eclipse-doesnt-seem-to-see-my-jdk
我试图让glassfish在 eclipse

中工作,并遇到JRE vs JDK错误:

GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the  correct JDK in the Server properties ‘Runtime Environment’ section.

我google了一下,看来很多人都有这个问题.确实在偏好中 – >服务器 – >运行时环境当我在glassfish服务器运行时环境中单击编辑时,JRE是“默认JRE”.我点击下拉菜单并将其切换到我的JDK:java-6-openjdk并认为我解决了问题.不幸的是,我仍然得到完全相同的错误.这让我对如何谷歌问题感到茫然,因为其他人似乎只是通过将JRE切换到JDK来解决它.有人有想法吗?

Avtar

尝试设置 Eclipse

在JDK中运行 – 也许Glassfish会选择它的JDK.为此,请编辑eclipse.ini,然后添加该行

-vm 
 path-to-javaw.exe-in-a-JDK

有了这个配置,我从来没有遇到过这个问题.

翻译自:https://stackoverflow.com/questions/7638748/glassfish-in-eclipse-doesnt-seem-to-see-my-jdk


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

WebWork in Action

WebWork in Action

Jason Carreira、Patrick Lightbody / Manning / 01 September, 2005 / $44.95

WebWork helps developers build well-designed applications quickly by creating re-usable, modular, web-based applications. "WebWork in Action" is the first book to focus entirely on WebWork. Like a tru......一起来看看 《WebWork in Action》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具