[JAVA] When I tried to start GlassFish, I got an internal error while "Publishing to GlassFish 4.0 on localhost ...". What to do when it becomes
environment
OS : Windows10
GlassFish : GlassFish 4.1
Eclipse : Kepler Service Release 2
Event
I got an error when I cleaned GlassFish in Eclipse.

Even so, when I started GlassFish, I got an error and could not start it.

Error displayed in the dialog
"Localhost GlassFish 4.Published to 0..."An internal error has occurred inside.
java.lang.NullPointerException
Cause: JRE had strange settings
How to respond
- Select Settings> Server> Server Runtime Environment.
- Select the GlassFish you are using and press the [Edit] button.

- [JRE]> Set the JRE that suits your app.
- Clean GlassFish.
- Stop GlassFish.
- Clean the project.
- Deploy and launch GlassFish.
- If this causes the same event, google to find a solution.
The site that I used as a reference
-Glassfish cannot register as a server in Eclipse with "Glassfish server runtime requires full JDK instead of JRE" | gele.log ()