|
Warning
This page is under construction! It is being updated to reflect the enhancements for version 2.0. |
|
This document will assist the Java developer in setting-up a JDeveloper Application and Projects that leverage the various packages within Project OpenPTK.
The processes outlined in this document will allow the developer to leverage the bundled build process (ant and build.xml file) that is provided with Project OpenPTK while using the development features of JDeveloper.
The process involves downloading the entire Project OpenPTK source code distribution and then creating a specific JDeveloper's projects that "map" to OpenPTK projects.
|
Revision History
Description |
Author |
Version |
Date |
Initial Creation |
Scott Fehrman |
2.0.0 |
May 2011 |
Move to new Google Web Site |
Scott Fehrman |
2.0.0 |
July 2011 |
Prerequisites
The following tasks must be completed ...
- Install Oracle JDeveloper. This document was created using JDeveloper Studio Edition 11.1.1.2.0 on Mac OS X 10.5.8
- Download the entire Project OpenPTK source distribution from http://java.net/projects/openptk
New Application and Project: Base
The Base OpenPTK package is used by all the other packages. Create a JDeveloper Application and a JDeveloper Project, within it, called Base. The Base JDeveloper Project is the first of many JDeveloper Projects within the JDeveloper Application.
From the JDeveloper File Menu, select New ...
- From the New Gallery Popup dialog,
- Select the General Category
- Select Generic Application Item
- Select OK
|
New Gallery - Generic Application:
|
From the Create Generic Application - Step 1 of 3 Popup dialog,
- Set the Application Name
- Set the Directory (optional)
- Enter: .../jdeveloper/community
- Select the Next Button
|
|
From the Create Generic Application - Step 2 of 3 Popup dialog,
- Set the Project Name
- Under the Project Technologies Tab:
- Move the Java Item from the Available List to the Selected List
- Select the Finish Button
|
|
The JDeveloper Application Navigator now contains ...
|
|
Setting the Source Path ...
- Select the Base Project
- Right-click on to show a menu
- Select the *Project Properties ...* (at the bottom)
- A dialog window will be displayed
- Select the *Project Source Paths* Item in the Left Tree View
- The Java Source Paths will contain a default src folder (this will be replaced)
- Select the Add ... Button
- A Choose Directory dialog will be displayed
- Navigate to the OpenPTK source code
- Select the java folder for the Base package
.../trunk/openptk/projects/OpenPTK/Base/src/java
- Select the default path item: .../jdeveloper/community/Base/src
- Click OK
- The JDeveloper Applicaton Navigator now has a Application Sources Folder under the Base Project. Expand the Java packages to see the individual source files.
|
Change the Source Folder:
Source packages and java files:
|
Compile the package
- Right-click the Base Project
- Select Make Base.jpr
All the source files will be compiled.
- Review the Messages - Log output.
|
|
Project: Framework
The Framework packages depend on the Base packages. The following projects use this project:
- Server
- Service-JDBC
- Service-JNDI
- Service-SPML
- Service-SPML2
From the JDeveloper File Menu, select New ...
- From the New Gallery Popup dialog,
- Select the General Category
- Select Generic Project Item
- Select OK
|
New Gallery - Generic Project:
|
- Set the Project Name
Enter Framework
- Under the Project Technologies Tab:
Move the Java Item from the Available List to the Selected List
- Select the Next Button
|
Create Generic Project - Step 1 of 2
|
Set the Java Source Path
- Click the Browse button next to the path value
- Navigate to the path where the source was downloaded
- Select: .../trunk/openptk/projects/OpenPTK/Framework/src/java
- Click Finish
|
Create Generic Project - Step 2 of 2
|
A Folder called Application Sources appears under the Framework Project
- Expand the Application Sources Folder
- Browse the java packages and source files
|
|
This Project, Framework, is dependent on the Base Project
- Right click the Framework Project and select Project Properties ...
- A dialog will be displayed
- Select Dependencies from the Left Tree View
- Click the Pencil icon to add items
- A Edit Dependencies dialog is displayed
- Expand the Projects to show the Base.jpr Build Output
- Check the box
- Click OK
- Click OK
|
|
Compile the package
- Right-click the Framework Project
- Select Make Framework.jpr
All the source files will be compiled.
- Review the Messages - Log output.
|
|
Project: Service-JDBC
Project: Service-JNDI
Project: Service-SPML
Project: Service-SPML2
Project: Taglib
Project: Plugin-MimeUtil
Project: Plugin-SendEmail
Project: Plugin-Templates
Project: ClientAPI
Project: Server
Project: UML
Project: CLI |