[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.
![360-1.png](https://qiita-image-store.s3.amazonaws.com/0/159761/ff866d9c-5278-561d-b550-010688f65680.png)
Even so, when I started GlassFish, I got an error and could not start it.
![360.png](https://qiita-image-store.s3.amazonaws.com/0/159761/37d5181c-276b-8fdc-d651-bb5c5ebc3d9b.png)
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.
![480.png](https://qiita-image-store.s3.amazonaws.com/0/159761/c71e1689-5202-87da-751f-f7ade70d0d6c.png)
- [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 ()