I’m using Jenkins to build a Java EE application I develop using NetBeans.
When I try to use Ant to build the project on the CI server I get the following error:
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=<app_server_installation_directory>
I’m trying to run the dist target to create the war file of my service. I don’t want to deploy it to the application server, yet.
I just ran into this build issue on Jenkins with a Netbean Java EE Application. I’m developing on a Windows machine but Jenkins installed on Linux. Basically the solution is to ensure JavaEE App Server is installed on the CI Server and then set the Ant build properties to point the installed App Server.
I resolved this error for my setup by: