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

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.

主站蜘蛛池模板: 永仁县| 封开县| 五台县| 革吉县| 屏南县| 穆棱市| 龙井市| 安宁市| 通辽市| 台安县| 临猗县| 盐亭县| 余姚市| 高陵县| 斗六市| 朝阳区| 本溪市| 怀柔区| 镇宁| 灵寿县| 桓仁| 临海市| 五原县| 镇康县| 社旗县| 宜兴市| 承德市| 肇源县| 深州市| 新龙县| 太和县| 秀山| 盱眙县| 凭祥市| 娱乐| 辰溪县| 乐都县| 绥芬河市| 清远市| 武功县| 彭泽县|