2012年10月17日 星期三

NetBean: assign Server to Project

Build Error:


D:\data\My Documents\NetBeansProjects\MPS\MPS-ejb\nbproject\build-impl.xml:197: The Java EE server classpath is not correctly set up - server home directory is missing.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
   ant -Dj2ee.server.home=
BUILD FAILED (total time: 0 seconds)


Root cause:
Project server is not configured properly.
Right-click project > Properties > Run > Server : select appropriate server. i.e. GlassFish v3
(server version need to support the EJB version of your project )

Then clean and rebuild.


沒有留言:

張貼留言