Configuring JVM Controllers for generating PDF reports from Oracle Forms is definitely recommended for optimizing system resources. However, if you are trying to generate PDF reports when using the WebUtil functionality, the WebUtil jar file (signed and provided by Oracle with every 11g installation) needs to be in the classpath of the JVM controller. Otherwise, you will encounter the following error in the Java Console:
WUT-134 [WEBUTIL_CORE.checkJava] frmwebutil.jar not in the application server Classpath
To fix this error, you can configure the following:
- Go to $ORACLE_INSTANCE/config/FRComponent/frcommon/tools/jvm
- Make a backup of jvmcontrollers.cfg
- Open up jvmcontrollers.cfg using a text editor
- Add the full path to frmwebutil.jar to the classpath variable. The classpath should look similar to the following:
- Windows example: classpath=%ORACLE_HOME%\jlib\zrclient.jar;%ORACLE_HOME%\reports\jlib\rwrun.jar;%ORACLE_HOME%\forms\java\frmwebutil.jar
- Unix example: classpath=$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/forms/java/frmwebutil.jar
- NOTE: Please type out the entire path of $ORACLE_HOME.
- Save and close the file
- Restart the JVM controller
After applying the steps above, you should have no problem using WebUtil when generating reports from the Oracle Forms application using WebUtil.
Source: Oracle Support note 1529264.1