This procedure precompiles all the classes in an application. The optimized jar files have all methods compiled.
For the purposes of this example, the application resides under the directory specified by the environment variable $APP_HOME and the jar files are in the subdirectory $APP_HOME/lib. The application also uses some classes from those provided by IBM® in rt.jar. In this case, you can precompile only the application code, namely main.jar and util.jar.
By default, the shared class cache is in /tmp/javasharedresources. Use the -cacheDir option to put the cache into a different directory. You cannot create a cache on a networked file system.