- Java 11 and 12:New Features
- Mala Gupta
- 107字
- 2021-07-02 12:27:04
Enabling application class data archive
With Java 10, the default configuration only enabled class data sharing for JVM's bootstrap class loader. Since the bootstrap class loader doesn't load your application's files, you were expected to explicitly enable it for the application class loader and other class loaders using the following command:
-XX:+UseAppCDS
With Java 11, however, AppCDS is automatically enabled with OpenJDK 64-bit systems. When including this option, you might get an error message like this:

If you are using Java version 11 or later, you can skip this option.
Java runtime options are case sensitive. The -XX:+UseAppCDS and -XX:+useAppCDS options are not the same.
推薦閱讀
- 計算思維與算法入門
- Learning PostgreSQL
- Mastering JavaScript Object-Oriented Programming
- Spring技術內幕:深入解析Spring架構與設計
- Java編程指南:基礎知識、類庫應用及案例設計
- Building Mapping Applications with QGIS
- Bootstrap 4:Responsive Web Design
- Windows Forensics Cookbook
- SQL Server 2008 R2數據庫技術及應用(第3版)
- Android應用開發深入學習實錄
- PhoneGap 4 Mobile Application Development Cookbook
- Oracle Database XE 11gR2 Jump Start Guide
- Java程序設計實用教程(第2版)
- Web開發的平民英雄:PHP+MySQL
- Implementing Splunk(Second Edition)