Follow these instructions to build and run the XmlSchemaType Class example on your Application Server instance using the NetBeans IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/jaxb/.
Select the j2s-xmlSchemaType-class folder.
Select the Open as Main Project check box.
Click Open Project.
Right-click the j2s-xmlSchemaType-class project and select Run.