-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 19
-
Component/s: hotspot
The JVM option `-XX:+AutoCreateSharedArchive` can be used to automatically create or update a CDS archive for an application. For example:
`java -XX:+AutoCreateSharedArchive -XX:SharedArchiveFile=app.jsa -cp app.jar App`
The specified archive will be written if it does not exist, or if it was generated by a different version of the JDK.
`java -XX:+AutoCreateSharedArchive -XX:SharedArchiveFile=app.jsa -cp app.jar App`
The specified archive will be written if it does not exist, or if it was generated by a different version of the JDK.