【发布时间】:2012-08-21 23:50:55
【问题描述】:
我有一个 javaee Bibliothek 的 maven 依赖项。
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
我在 Eclipse 中的某些类中遇到错误。
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/MessagingException
我添加了 javax.mail 依赖项。
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.5</version>
</dependency>
它没有工作。有什么想法吗??
【问题讨论】:
标签: java jakarta-ee maven java-ee-6