gpt4 book ai didi

java - Mirth/Java10 - 缺少发送电子邮件的类

转载 作者:行者123 更新时间:2023-12-01 16:45:33 28 4
gpt4 key购买 nike

欢乐 3.6.0,Java 10

Caused by: java.lang.NoClassDefFoundError: javax/activation/DataSource

你好,

我在尝试通过 Mirth 发送电子邮件时收到上述错误。我读到 Java 10 中缺少一个类,但我找不到成功解决此问题的明确说明。任何帮助将不胜感激。

最佳答案

In JDK 9 and JDK 10, the modules that contain CORBA or the APIs shared between Java SE and Java EE are not resolved by default when you compile or run code on the class path. These modules are deprecated for removal. The policy of not resolving these modules is a first step toward removing these APIs from Java SE and the JDK in a future release. The deprecated modules are:

  • java.corba — CORBA
  • java.transaction — The subset of the Java Transaction API defined by Java SE to support CORBA Object Transaction Services
  • java.activation — JavaBeans Activation Framework
  • java.xml.bind — Java Architecture for XML Binding (JAXB)
  • java.xml.ws — Java API for XML Web Services (JAX-WS), Web Services Metadata for the Java Platform, and SOAP with Attachments for Java (SAAJ)
  • java.xml.ws.annotation — The subset of the JSR-250 Common Annotations defined by Java SE to support web services

Existing code with references to classes in these APIs will not compile without changes to the build. Similarly, code on the class path with references to classes in these APIs will fail with NoDefClassFoundError or ClassNotFoundException unless changes are made in how the application is deployed.

See JEP 320: Remove the Java EE and CORBA Modules to get more information about migration options, possible replacements for the modules, and to track the progress of the removal of the Java EE and CORBA modules from the JDK.

source

您有两个选择:

  • Oracle 迁移指南建议在 JVM 启动期间使用 --add-modules java.activation 选项。您可以在 Mirth Connect 的 mirth.properties 中进行设置

关于java - Mirth/Java10 - 缺少发送电子邮件的类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52166659/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com