Creating Java Projects for Agentry Java API Development
If the application includes a Java Virtual Machine system connection, create a Java project in the Eclipse platform that includes the Agentry Java API. The Java package and Java project provide the information that define objects, transactions, synchronization steps, and properties.
- Install and configure a supported version of the Eclipse IDE and Agentry Editor plug-in.
- Ensure that all Java resources are accessible from the Eclipse platform host system, including JAR files, Java code libraries, and so on.
- If developing applications with the Agentry SAP Framework Foundation, use a supported version of the SAP Java Connector (SAP JCo).
- Make sure you have the proper version of the JRE for the supported version of the Eclipse IDE.
- In the Java perspective, select to start the Java Project wizard.
Define the project, then click Next.
- Name the project.
- (Optional) Unselect Use Default Location to specify a location outside the workspace in which to save the project.
Specify the JRE version that matches the back-end system.
This version does not have to match the version that Eclipse requires. This version of the JRE must be installed prior to making this selection.
(Optional) Change the project folder structure.
The default folders are src and bin.
- (Optional) Add the project to a working set.
- Configure the Java project build settings in each tab, then click
- (Optional) In the Source tab, create new source folders or link to existing source folders.
(Optional) In the Projects tab, select additonal projects to be
included on the build path for the current project.
This project must reside in the same workspace as this project. Once added, options exist to select the files or sources within the project to use.
In the Libraries tab, select Add External JARs,
navigate to the Agentry Java API,
Agentry-v5-doc.zip, then select
You can expand the node to edit the locations of the ZIP contents. You can also add additional libraries, if needed, as well as the SAP JCo JAR file.
In the Order and Export tab, specify the build order for the libraries
and external projects.
- Move the JRE System Library to the first position.
- Place the Agentry Java API library before any libraries or projects that extend the Agentry classes or interfaces.
- Place any resources from the back-end system before the mobile application-specific items, which may include application suite libraries.
- The Agentry Java API jar file.
- A source folder location for Java logic created for the mobile application.
- Any other resources that you definted for the project.
Configure the Eclipse file associations for the Agentry project.