Create a "OpenPTK-Consumer-Taglib" NetBeans Project that maps to Project OpenPTK's Consumer module for the JSP Taglib.New Project
- From the File menu, select New Project
- From the Categories Pane, select "Java"
- From the Projects Pane, select "Java Project with Existing Source"
- Click the "Next >" button
| |
Name and LocationSpecify the name of the new NetBeans project and where it will be located.
- Set the Project Name to OpenPTK-Consumer-Taglib
- Use the Browse button and select the the ${NB_HOME} directory. Make sure the Project Folder is set to the ${NB_HOME} directory with a sub-directory name that matches the Project Name: /work/Software/netbeans/openptk/OpenPTK-Consumer-Taglib
- Click the "Next >" button
| |
Existing SourcesAdd Project OpenPTK source files for the Consumer Taglib package.
- Use the "Add Folder ..." button to locate the "src" folder. This folder will be under the ${PTK_HOME} directory as a sub-directory. The directory pathname to the src folder is: /work/Software/openptk/projects/OpenPTK/Consumer/Taglib/src
- Click the "Next >" button
| |
Includes and ExcludesThe last dialog will show all the Java files that will be referenced by the new NetBeans Project. This dialog allows you to include and/or exclude other files. No changes will be made. Click the "Finish" button. NetBeans will create the new Project. | |
Verify New ProjectAfter the project has been created, verify it's components. Select the "Projects" tab and the "Files" tab. Explore tabs to verify the components of the new Project. See the images below: Resolve DependenciesWe need to configure this Project use the following: - OpenPTK-Framework NetBeans Project.
- Servlet JSP Library (servlet2.5-jsp2.1-api.jar)
- Select the "OpenPTK-Consumer-Taglib" Project, from the Projects panel, if it is not already selected.
- From the "File" menu, select the menu item "OpenPTK-Consumer-Taglib" Properties
- From the Categories pane, Select the Library item
- From the Compile-Time Libraries: pane, click the "Add Project ..." button.
- Using the "Add Project" panel, locate the "OpenPTK-Framework" NetBeans Project. For this document, it is located in the ${NB_HOME} directory.
- Select the "OpenPTK-Framework" Project and click the "Add Project JAR File" button.
- Click the "OK" button on the Project Properties panel.
| |
- Select the "OpenPTK-Consumer-Taglib" Project, from the Projects panel, if it is not already selected.
- From the "File" menu, select the menu item "OpenPTK-Consumer-Taglib" Properties
- From the Categories pane, Select the Library item
- From the Compile-Time Libraries: pane, click the "Add JAR/Folder ..." button.
- Using the "Add JAR/Folder" panel, locate the necessary JAR files. These JAR files are in the ${PTK_HOME}/lib directory.
- Select the "servlet2.5-jsp2.1-api.jar" file and click the "Choose" button
- Click the "OK" button on the Project Properties panel.
| |
Clean and BuildThe red indicators on the project should now be gone. You can now build the project. Select the "OpenPTK-Consumer-Taglib" Project from the Projects panel. Right-click on the selected project and select "Clean and Build". The Project should build successfully. |
|