Changes were made to a Gen 8.6 java user exit called CFBDynamicMessageEncodingExit.java and it needs to be compiled to produce a new .class file that can be used at runtime. How can this user exit be compiled? What Gen files need to be referenced in order for a successful compilation?
Component: Gen Web Generation
In order to compile a Gen java user exit such as the exit CFBDynamicMessageEncodingExit.java, the following steps need to be performed:
mkjavart genrt.jar All
genrt.jar is the jar file name used in this example. You can give it any name you want with a .jar extension. 'All' is the option used in this example although there are other options available also (type mkjavart and press Enter to see the options).javac -classpath "%Gen86%\Gen\classes\genrt.jar" CFBDynamicMessageEncodingExit.java
Upon a successful execution of the command, it should return to an empty prompt. The cfb folder should now have an updated class file for the user exit.javac -classpath C:\models\sample.ief\java\deploy.j2ee\genrt.jar CFBDynamicMessageEncodingExit.java
The above example references the genrt.jar file present in the Sample model's deploy.j2ee folder. Upon a successful execution of the command, it should return to an empty prompt. The cfb folder should now have an updated class file for the user exit.Reference about Web Generation User Exits.