Got this tutorial working.  Right click the project and hit run and it should compile and open it in a web browser.

https://netbeans.org/kb/docs/web/quickstart-webapps.html