March 2019
Intermediate to advanced
242 pages
6h 21m
English
To create the shared archive with the application files, you can execute the following command in Command Prompt:
java -Xshare:dump
-XX:+UseAppCDS
-XX:SharedClassListFile=myappCDS.lst
-XX:SharedArchiveFile=appCDS.jsa
-cp appcds.jar
As mentioned in the Enabling application class data archive section, if you are using Java 11 or a later version on your system, you can skip using the -XX:+UseAppCDS option (AppCDS was introduced in Java 10; with Java 11, you don't need to enable it explicitly). The preceding command uses the list of class names stored in myappCDS.lst to create the application shared archive file. It also specifies the name of the shared archive file as appCDS.jsa.
Here's a ...
Read now
Unlock full access