4.2.2 Prepare Java Archive (jar)
The code must be complied as a java archive (jar) to publish the changes after customization.
Setup an Integrated Development Environment
Note:
An admin user can use the java principle to extend the default classes and override or add additional methods as required. This will reduce the effort for re-applying the customization on future upgrades.To setup an Integrated Development Environment
(IDE) to compile, follow these steps:
- Download and Install JDK 11 and your choice of IDE with Java Support.
- Download the jars from
<COMPLIANCE_STUDIO_INSTALLATION_PATH>/deployed/mmghome/mmg-studio/interpreter-server/pgx-interpreter-*/lib
and<COMPLIANCE_STUDIO_INSTALLATION_PATH>/deployed/mmg-home/mmg-studio/interpreter-server/pgx-interpreter-*/extralibs
directories into your local directory. - Add these jars as default jars (default class path of JDK) in the IDE.
- Copy the code from the notebook template and create the respective java class in IDE.
Create the Java Archive
As per your IDE, run the respective command to create a jar.