To explore all the capabilities of NetBeans IDE related to Java EE application and web services development, you need to make sure your environment is correctly configured. If you have downloaded the bundle containing both NetBeans IDE and Sun Java System Application Server, you have a preconfigured development environment, and you can skip the following steps. If you have downloaded a standalone NetBeans IDE, you will also need to install Sun Java System Application Server. Version 8.2 is available from http://java.sun.com/j2ee/1.4/download.html. This application server is the core of the J2EE 1.4 SDK and is free for development, deployment, and redistribution. Before you can deploy an enterprise application, web application, JSP page, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE. By default, only the bundled Tomcat web server is registered with the IDE and this is not a complete Java EE server. To register a Sun Java System Application Server instance:
When you register a server in the IDE, you make its libraries available for production, deployment, or both. If you deploy your applications to a remote instance of the Sun Java System Application Server, its libraries are available at runtime. However, during development, you might need a local instance of this server. You can have multiple instances of the Sun Java System Application Server registered with the IDE. Once you have registered your local instance, you can open the wizard again to register remote instances (by entering a remote machine name and its port number in the Platform Location field of the Platform Folder Location page of the wizard). When a server is registered in the IDE, you can see its node in the Runtime window under the Servers node. When you create a project in the New Project wizard, you select the server to which you want to deploy your application. After you create the application, you can change the server by right-clicking the project, choosing Properties, clicking the Run node, and selecting a different server. Now you are ready to create web services, enterprise beans, and Java EE applications. |