Add the following command-line options as specified in JDK-8315737 (JEP 483):
-XX:AOTMode=off/record/create/auto/on
-XX:AOTConfiguration=<file>.aotconfig
-XX:AOTCache=<file>.aot
Examples of existing syntax
java -XX:DumpLoadedClassList=app.classlist -cp app.jar App
java -Xshare:dump -XX:SharedClassListFile=app.classlist -XX:SharedArchiveFile=app.jsa -cp app.jar
java -XX:SharedArchiveFile=app.jsa -cp app.jar App
Examples of new syntax
java -XX:AOTMode=record -XX:AOTConfiguration=app.classlist -cp app.jar App
java -XX:AOTMode=create -XX:AOTConfiguration=app.classlist -XX:AOTCache=app.aot -cp app.jar
java -XX:AOTCache=app.aot -cp app.jar
(See CSR JDK-8338243 for details)