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" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |