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

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.

主站蜘蛛池模板: 辽阳县| 甘谷县| 望江县| 土默特右旗| 巴林左旗| 罗江县| 亳州市| 汝南县| 甘孜| 莱西市| 昂仁县| 辽阳县| 临漳县| 灌南县| 彭州市| 中卫市| 江山市| 高要市| 清镇市| 当雄县| 贵南县| 页游| 陈巴尔虎旗| 土默特左旗| 沛县| 临澧县| 禹州市| 贡山| 西吉县| 西华县| 阳原县| 龙里县| 沂源县| 读书| 白水县| 汨罗市| 彰化市| 应城市| 乡宁县| 惠来县| 裕民县|