简体   繁体   English

Mac上的Eclipse上的Glassfish

[英]Glassfish on Eclipse on Mac

I am using Eclipse Luna on Mac Maverick. 我在Mac Maverick上使用Eclipse Luna。

  1. I have downloaded GlassFish and extract it. 我已经下载了GlassFish并将其解压缩。
  2. I have downloaded the Glassfish toolkit from the marketplace. 我已经从市场上下载了Glassfish工具包。
  3. I am using Eclipse EE. 我正在使用Eclipse EE。
  4. JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin JAVA_HOME设置为/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin

When I try to define a new server, why isn't glassfish showing up as an option? 当我尝试定义新服务器时,为什么不显示glassfish作为选项? What have I missed? 我错过了什么?

The problem is actually Eclipse. 问题实际上是Eclipse。 JDK 7 only works with Eclipse EE in 64 bits version. JDK 7仅适用于64位版本的Eclipse EE。 So, basically if want to make glassfish an available server: you need to: 因此,基本上,如果要使glassfish成为可用服务器,则需要:

  1. Use Eclipse EE 64 bits version 使用Eclipse EE 64位版本
  2. Use JDK-7 使用JDK-7
  3. Make sure your JAVA_HOME is set/updated (In Mac, it usually sits under /Library/Java/JavaVirtualMachines/) 确保已设置/更新了JAVA_HOME(在Mac中,它通常位于/ Library / Java / JavaVirtualMachines /下)
  4. In Eclipse marketplace, download and install Glassfish-toolkit (and restart the IDE of course) 在Eclipse市场中,下载并安装Glassfish-toolkit(当然,然后重新启动IDE)
  5. Make sure your Eclipse EE/Project is using the correct JDK (Preference -> Java -> Installed JREs) 确保您的Eclipse EE / Project使用正确的JDK(首选项-> Java->已安装的JRE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM