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

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.

主站蜘蛛池模板: 唐海县| 儋州市| 中江县| 房产| 高密市| 桐城市| 甘南县| 龙门县| 纳雍县| 宁德市| 卓尼县| 开鲁县| 芜湖县| 汤原县| 鹰潭市| 吉木萨尔县| 南川市| 泸水县| 光泽县| 喀什市| 惠水县| 集贤县| 屏东县| 株洲市| 台中县| 河北省| 连江县| 肥城市| 招远市| 兖州市| 阜宁县| 望都县| 闽侯县| 平泉县| 麻江县| 无锡市| 邢台县| 东乡族自治县| 广汉市| 济南市| 唐海县|