Generating a Java Runtime Code Template

Generating a Java Runtime Code Template Peopleosoft Component Interface


To access a component interface through PeopleSoft APIs using Java, PeopleSoft Application
Designer generates a template in the form of boilerplate Java code that you can adapt to your
purposes. This section describes how to generate the template code.




To generate a Java template for a component interface:
1. Open a component interface definition in Application Designer.
2. Right-click anywhere in the definition view to display the pop-up menu.
3. Select Generate Java Template.
When the template is successfully generated, a message appears stating the name and
location of the template file.

Note. The template file is generated in the directory specified by the TEMP or TMP
system environment variable on your client machine.
4. Edit the generated file and modify the source code to suit your needs.
5. Compile the source code to generate a .class file.
In the case of the example used in this manual, you could use this command.
javac –classpath c:\temp;c:\pt8\class;c:\PT8\class\psjoa.jar SDK_BUS_EXP.java