# Creating the PeopleSoft HRMS Jar File

Perform the following steps to create the `PeopleSoftHRMS.jar` file:

1. Sign in to PeopleSoft Application Designer in two-tier mode.
2. Open the component interface that will be used in provisioning rule. For example, CI\_PERSONAL\_DATA
3. From the menu select **Build \> PeopleSoft APIs**.
4. From the Build PeopleSoft API Bindings window, select the JAVA classes Build checkbox and deselect the **COM Type Library** and **C Header Files Build** checkboxes.
5. In the JAVA Classes frame select the checkbox for Build and select the appropriate Component Interfaces from the drop down menu. Select the following options from the drop down menu:

   - CompIntfc.CompIntfcPropertyInfo
   - CompIntfc.CompIntfcPropertyInfoCollection
   - PeopleSoft\*
   - CompIntfc.CI\_PERSONAL\_DATA\*
   - CompIntfc.CI\_JOB\_DATA\*
   - CompIntfc.BADGE\*

   Specify the appropriate file path for the JAVA files. The Component Interface JAVA files are generated in the `PeopleSoft\Generated\CompIntfc` directory that is created in the specified location.

   For example, if you specify `C:\CI` as the file path, then the Component Interface Java files are generated in `C:\CI\PeopleSoft\Generated\CompIntfc`.
6. Compile the JAVA files by performing the following steps:

   1. Open the command prompt and change directories to the folder where the generated JAVA files are located. For example, `C:\CI`.
   2. Go to the `PeopleSoft\Generated\CompIntfc\` directory.
   3. Run the following command:

      ```text
      javac -classpath %PS_HOME%\class\psjoa.jar *.java
      ```

      Where `%PS_HOME%` is the location that PeopleSoft is installed.

      > **Note**
      >
      > Ensure that the JAVA compiler used for compiling the generated JAVA files is compatible with the JAVA provided with the PeopleSoft installation that needs to be managed.
   4. (*Optional*) You can delete all the generated java files from the existing directory, except the `.class` files.
7. Perform the following steps to package the compiled files as the PeopleSoftHRMS.jar file:

   1. Open the Command prompt and change directories to the folder where the generated JAVA files are located. For example, if the java files are generated in `C:\CI\PeopleSoft\Generated\CompIntfc` folder, then run the command from `cd C:\CI`
   2. Run the command:

      ```text
      jar -cvf PeopleSoftHRMS.jar *
      ```
8. Copy the generated `PeopleSoftHRMS.jar` and `%PS_HOME%\class\psjoa.jar` files to the computer.
9. The location of the above jar file must be specified for the Jar location configuration attribute during connector configuration.
