将 GlassFish 3.1.2 运行时添加到 Eclipse Juno

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13460003/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:26:55  来源:igfitidea点击:

Add GlassFish 3.1.2 Runtime to Eclipse Juno

eclipseruntimeglassfish-3eclipse-juno

提问by sdoca

I've recently installed Juno EE Edition and am trying to get my Glassfish 3.1.2.2 (open source edition) server runtime set up.

我最近安装了 Juno EE 版,并且正在尝试设置我的 Glassfish 3.1.2.2(开源版)服务器运行时。

I installed Glassfish separately via the zip file. My directory looks like:

我通过 zip 文件单独安装了 Glassfish。我的目录看起来像:

C:\Servers\glassfish3112\glassfish

In Eclipse, I installed the "Glassfish Java EE Application Server Plugin for Eclipse" which also installed "Oracle Glassfish Server Tools". These are the jars/directories that were added to my plugins directory:

在 Eclipse 中,我安装了“Glassfish Java EE Application Server Plugin for Eclipse”,它也安装了“Oracle Glassfish Server Tools”。这些是添加到我的插件目录中的 jars/目录:

  • oracle.eclipse.tools.glassfish_3.2.3.201106220649.jar
  • oracle.eclipse.tools.doc.javaee6_1.0.0.201106220649
  • oracle.eclipse.tools.doc.javaee5_1.0.0.201106220649
  • org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar (which contains)
    • oracle.eclipse.tools.glassfish_4.2.1.201207240841.jar
    • oracle.eclipse.runtime.glassfish3122_3.1.2.201207240841.jar
  • oracle.eclipse.tools.glassfish_3.2.3.201106220649.jar
  • oracle.eclipse.tools.doc.javaee6_1.0.0.201106220649
  • oracle.eclipse.tools.doc.javaee5_1.0.0.201106220649
  • org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar(包含)
    • oracle.eclipse.tools.glassfish_4.2.1.201207240841.jar
    • oracle.eclipse.runtime.glassfish3122_3.1.2.201207240841.jar

I then went into my Preferences | Server | Runtim Environments to add my Glassfish server. When I choose the above path, I get the error message There is no valid GlassFish installlation in the specified directory. Click the Install Server button to download and install to that directory.

然后我进入了我的偏好 | 服务器 | Runtim Environments 添加我的 Glassfish 服务器。当我选择上述路径时,我收到错误消息在指定目录中没有有效的 GlassFish 安装。单击安装服务器按钮下载并安装到该目录。

I found this StackOverflow question Glassfish 3.1.2 and Eclipsewhich indicates that the Marketplace plugin does not work with GF 3.1.2 and gives this link to get the Juno version: http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/plugins/

我发现这个 StackOverflow 问题Glassfish 3.1.2 和 Eclipse表明 Marketplace 插件不适用于 GF 3.1.2 并提供此链接以获取 Juno 版本:http: //dlc.sun.com.edgesuite.net/glassfish /日食/靛蓝/插件/

The latest runtime and tools jars on that site are the ones included in the org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar.

该站点上最新的运行时和工具 jar 包含在 org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar 中。

Can somebody explain to me what I've done wrong and how to get my runtime set up?

有人可以向我解释我做错了什么以及如何设置我的运行时吗?

回答by Imifos

You can get the Juno plugin version here: http://dlc.sun.com.edgesuite.net/glassfish/eclipse/juno/

您可以在此处获取 Juno 插件版本:http: //dlc.sun.com.edgesuite.net/glassfish/eclipse/juno/

This includes support for GlassFish 3.1.2.2.

这包括对 GlassFish 3.1.2.2 的支持。

Best, TM

最好的,TM

PS. Don't forget to uninstall all other Glassfish plugins before installing this one.

附注。在安装这个插件之前,不要忘记卸载所有其他 Glassfish 插件。