I had just installed eclipse luna and I use the marketplace to install oracle package to use glassfish v4.0. Everything went ok but when I'm trying to install it they still show me an error at the server root path (Error: The specified directory is not a valid GlassFish installation.)...I don't know why? this happen even giving it a path. have anyone resolve this issue?.
3 Answers
I got caught by this trying to following along with the Lynda.com tutorial on web services with Java EE. You need to download and install Glassfish and then point the server root to the glassfish directory. Here are the steps I took:
- download glassfish from here: https://glassfish.java.net/download.html
- unzip the zip file: this is essentially the install step
- navigate into the installation to the glassfish folder: this what you point eclipse to
The high level answer is here: How do I use Glass fish server with eclipse luna for Java EE?
Possible duplicate of How do I use Glass fish server with eclipse luna for Java EE?
However, you need to specify the "glassfish" folder under the extracted GlassFish files, for example ...\glassfish4\glassfish
First Download full platform from https://glassfish.java.net/download.html
Unzip it.
At the window you read this error, go to the browse for server root and find the glassfish folder inside your unzipped folder. Click on it and your error will be gone.