- 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.
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Learning Cython Programming(Second Edition)
- Visual FoxPro程序設計教程(第3版)
- Java Web基礎與實例教程(第2版·微課版)
- Xcode 7 Essentials(Second Edition)
- Java編程指南:基礎知識、類庫應用及案例設計
- 數據結構簡明教程(第2版)微課版
- Lua程序設計(第4版)
- Getting Started with Python Data Analysis
- HTML5秘籍(第2版)
- 單片機原理及應用技術
- SEO教程:搜索引擎優化入門與進階(第3版)
- Moodle 3.x Developer's Guide
- 計算機常用算法與程序設計教程(第2版)