Right-click the Tomcat 6.0 project's node and choose Download from the pop-up menu. Although the module will build, it will look not good in the editor.Ģ. ![]() This step is required because the NetBeans editor does not pull classpath information from the Ant build script. Select the Java Sources ClassPath category on the left and add the /java1/ant/ant.jar file to the classpath. In the Projects window, right-click the Tomcat 6.0 project node and choose Properties from the pop-up menu. Note: Netbeans is showing red X's for Java classes, because you have not yet downloaded the required external libraries. In the IDE, choose Open Project from the main menu, and open the Tomcat project from the directory. # Default location of JDK, can be overridden by using -jdkhome : To change the IDE configuration, open the nf file in the /etc/ directory, and change the JDK location to point to JDK 1.5: If you install NetBeans with JDK 1.6, change the IDE configuration to use JDK 1.5. Note: To build Tomcat, the IDE uses JDK 1.5. # Replace this path with the directory path to where the binaries of dependenciesīase.path=C:/tmp/apache-tomcat-6.0.13-src/jars # - Default Base Path for Dependent Packages. ![]() Your build.properties file should look similar to this: This step is required because Tomcat uses libraries that need to be downloaded from external sources. ![]() jars) and, if needed, contains proxy configuration data. This file specifies the directory for external libraries (i.e. In the directory, create a new file named build.properties. Note: if you installed NetBeans 5.5.1, use the nbproject551.zip file instead.Ģ. Download the attached nbproject.zip file and unpack it into the directory. On Solaris/Linux, unzipping the Tomcat zip file in the /home/username directory creates the following directories: /home/username/apache-tomcat-6.0.13-src.ġ. zip file (in our case, the file name is apache-tomcat-6.0.13-src.zip) into the directory.Īfter the Tomcat zip file is extracted under, you will see a subdirectory, in this case called apache-tomcat-6.0.13-src.įor example, on Windows, extracting the Tomcat zip file in the root of C:\tmp\ creates the following path: C:\tmp\apache-tomcat-6.0.13-src. zip file from the Source Code Distributions section.Ģ. - directory into which Tomcat sources are downloadedĮxercises Converting Tomcat into a Netbeans Projectġ.Example: "C:\Documents and Settings\user_home" - the NetBeans IDE installation directory.Don't forget to install the NetBeans Profiler 5.5.1 because it is not part of the NetBeans 5.5.1 IDE. For more information about using the 5.5.1 version, see Addendum: Using NetBeans 5.5.1. You can also use the NetBeans 5.5.1 release. Since NetBeans 6.0 is under development now, use NetBeans IDE 6.0 Preview (M9) available from NetBeans IDE 6.0 Preview (M9) Download, for the latest working version. In this tutorial, you will learn how to convert the popular Tomcat project into a NetBeans project, which helps the user to develop, debug, and profile the Tomcat server within the NetBeans IDE.įor more information about the Netbeans IDE's features and supported technologies, see features.įor more information on how to work with the NetBeans IDE, see the Support and Docs page.īefore you begin, you need to install the following software on your computer: NetBeans IDE 6.0. ![]() The NetBeans IDE provides developers with all the tools they need to create professional cross-platform desktop, enterprise, web, and mobile applications. The NetBeans Integrated Development Environment (IDE) is a free, open-source Integrated Development Environment for software developers. The tutorial uses the Tomcat server as a project example. This tutorial shows how to easily develop large (about a half of million lines of code) industrial-scale projects in the NetBeans IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |