GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server prope

eclipse中集成了glassfish3.1.1后,运行项目出现错误GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.就是glassfish需要jdk1.6,而不是jre,打开window->preferences->server->runtime environments,选择glassfish,edit,,选择jdk1.6就好了。那么有可能这里没有jdk1.6,,选择preferences->java->installed jres,add,next,然后选择jdk的目录,finish就OK了。

你可能感兴趣的:(eclipse,jdk,server,properties,Glassfish)