官术网_书友最值得收藏!

Creating an application shared archive file

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 screenshot of the output from the preceding command:

Let's move to the final step—using the shared application archive file.

主站蜘蛛池模板: 涞源县| 仁怀市| 本溪市| 陈巴尔虎旗| 怀柔区| 双流县| 尚义县| 七台河市| 太原市| 淄博市| 东城区| 海盐县| 海阳市| 迭部县| 阳原县| 阜平县| 于田县| 宁武县| 柘荣县| 光山县| 澄江县| 新丰县| 寻甸| 汪清县| 南平市| 忻州市| 兴文县| 库尔勒市| 石屏县| 宜城市| 江达县| 新兴县| 祁东县| 五河县| 达尔| 北流市| 阜新| 桐城市| 三台县| 泗洪县| 和硕县|