<i id='VmNFr'><tr id='VmNFr'><dt id='VmNFr'><q id='VmNFr'><span id='VmNFr'><b id='VmNFr'><form id='VmNFr'><ins id='VmNFr'></ins><ul id='VmNFr'></ul><sub id='VmNFr'></sub></form><legend id='VmNFr'></legend><bdo id='VmNFr'><pre id='VmNFr'><center id='VmNFr'></center></pre></bdo></b><th id='VmNFr'></th></span></q></dt></tr></i><div id='VmNFr'><tfoot id='VmNFr'></tfoot><dl id='VmNFr'><fieldset id='VmNFr'></fieldset></dl></div>

    <tfoot id='VmNFr'></tfoot>

      <small id='VmNFr'></small><noframes id='VmNFr'>

      • <bdo id='VmNFr'></bdo><ul id='VmNFr'></ul>
      <legend id='VmNFr'><style id='VmNFr'><dir id='VmNFr'><q id='VmNFr'></q></dir></style></legend>
      1. java 9 中 javax.activation 包的替代品是什么?

        时间:2023-08-25
          <tfoot id='8RPAi'></tfoot>

                <bdo id='8RPAi'></bdo><ul id='8RPAi'></ul>

                <small id='8RPAi'></small><noframes id='8RPAi'>

                <i id='8RPAi'><tr id='8RPAi'><dt id='8RPAi'><q id='8RPAi'><span id='8RPAi'><b id='8RPAi'><form id='8RPAi'><ins id='8RPAi'></ins><ul id='8RPAi'></ul><sub id='8RPAi'></sub></form><legend id='8RPAi'></legend><bdo id='8RPAi'><pre id='8RPAi'><center id='8RPAi'></center></pre></bdo></b><th id='8RPAi'></th></span></q></dt></tr></i><div id='8RPAi'><tfoot id='8RPAi'></tfoot><dl id='8RPAi'><fieldset id='8RPAi'></fieldset></dl></div>
                  <legend id='8RPAi'><style id='8RPAi'><dir id='8RPAi'><q id='8RPAi'></q></dir></style></legend>
                    <tbody id='8RPAi'></tbody>
                  本文介绍了java 9 中 javax.activation 包的替代品是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  似乎 javax.activation 包在 Java 9 中已被弃用.Oracle 迁移指南建议在 JVM 启动期间使用 --add-modules java.activation 选项.

                  Seems like javax.activation package is deprecated in Java 9. Oracle migration guide proposes to use --add-modules java.activation option during JVM start.

                  但是,我想避免这种情况并替换 javax.activation 包的类,因为它已被弃用,并将在未来的 java 版本中删除.我想,javax.activation 应该有某种替代方案.如果有的话,是什么?

                  However, I would like to avoid this and replace javax.activation package's classes, as it is deprecated and will be removed in future java versions. I suppose, there should be some kind of alternative for javax.activation. If there is any available, what is it?

                  推荐答案

                  JavaBeans 激活框架 (JAF) 可能是您正在寻找现有包的替代方案.

                  JavaBeans Activation Framework (JAF) is possibly the alternative you are looking for to the existing package.

                  此独立版本的 JAF 使用 Java 平台模块系统自动模块 java.activation,匹配模块名在 JDK 9 中使用.未来的版本将包括完整的模块元数据.

                  This standalone release of JAF uses a Java Platform Module System automatic module name of java.activation, to match the module name used in JDK 9. A future version will include full module metadata.

                  通过 可升级模块.使用它们,可以在任何阶段(即编译时、构建时或运行时)使用该模块的更高版本.

                  The standalone APIs are supported in modular form only, via the concept of upgradeable modules. Using them, it's possible to use a version of that module from a later release in any phase, i.e., at compile time, build time, or runtime.

                  当前可用版本 因为这是 1.2.0 可以这样使用:

                  The currently available version for this is 1.2.0 which can be used like this:

                  Maven

                  <dependency>
                      <groupId>com.sun.activation</groupId>
                      <artifactId>javax.activation</artifactId>
                      <version>1.2.0</version>
                  </dependency>
                  

                  Gradle

                  compile 'com.sun.activation:javax.activation:1.2.0'
                  

                  常春藤

                  <dependency org="com.sun.activation" name="javax.activation" rev="1.2.0" />
                  

                  这篇关于java 9 中 javax.activation 包的替代品是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:什么时候执行一个类的静态块? 下一篇:“java -cp"之间的区别和“java -jar"?

                  相关文章

                1. <tfoot id='veNJe'></tfoot>

                2. <small id='veNJe'></small><noframes id='veNJe'>

                    1. <i id='veNJe'><tr id='veNJe'><dt id='veNJe'><q id='veNJe'><span id='veNJe'><b id='veNJe'><form id='veNJe'><ins id='veNJe'></ins><ul id='veNJe'></ul><sub id='veNJe'></sub></form><legend id='veNJe'></legend><bdo id='veNJe'><pre id='veNJe'><center id='veNJe'></center></pre></bdo></b><th id='veNJe'></th></span></q></dt></tr></i><div id='veNJe'><tfoot id='veNJe'></tfoot><dl id='veNJe'><fieldset id='veNJe'></fieldset></dl></div>
                      • <bdo id='veNJe'></bdo><ul id='veNJe'></ul>
                      <legend id='veNJe'><style id='veNJe'><dir id='veNJe'><q id='veNJe'></q></dir></style></legend>