Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add GlassFish 4.1 server in Eclipse Neon 2?

I have a fresh installation of Eclipse IDE for Java EE Developers - for WIndows 64bit - Version: Neon.2 Release (4.6.2)

I have downloaded the newest editions of GlassFish server 4.1.1 - both Full & Web Profie

I've installed the latest GlassFish tolls using Eclipse Marketplace:
https://marketplace.eclipse.org/content/glassfish-tools


Now I am trying to add GlassFish Server to Eclipse using the latest JDK 8, but it complains that Java 6 or 7 is required:

enter image description here


OK, then I am trying to use the latest JDK 7 instead of 8, but this time it complains that this is an invalid GlassFish instalation.

enter image description here


How can I add GlassFish server to Eclipse, what am I doing wrong ?

like image 879
krokodilko Avatar asked Dec 31 '16 22:12

krokodilko


1 Answers

After lots of trials and errors I finally managed this issue.
A glassfish subdirectory must be pointed instead of base installation directory, and everything works fine.

enter image description here

like image 139
krokodilko Avatar answered Sep 23 '22 15:09

krokodilko