- Java 11 and 12:New Features
- Mala Gupta
- 131字
- 2021-07-02 12:27:04
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.
推薦閱讀
- ServiceNow Application Development
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Instant Apache Stanbol
- Boost C++ Application Development Cookbook(Second Edition)
- 微服務設計原理與架構
- C++程序設計基礎教程
- STM32F0實戰:基于HAL庫開發
- Nginx Essentials
- C語言程序設計學習指導與習題解答
- ArcGIS By Example
- 網站構建技術
- Angular開發入門與實戰
- 西門子S7-200 SMART PLC編程從入門到實踐
- Python商務數據分析(微課版)
- ASP.NET Web API Security Essentials