问题
I'm trying to install GlassFish 4 with Eclipse on Windows 7 64bit. Everything goes fine, but when I try to set server root here's what happens (dir exists):

回答1:
The Glassfish installation folder contains a folder which is also named glassfish. This is the folder you have to put in the configuration field.
Change the path to:
c:/Glassfish/glassfish
来源:https://stackoverflow.com/questions/27215552/the-specified-directory-is-not-a-valid-glassfish-installation