带有导入的jar文件的Eclipse classnotfoundexception

问题描述 投票:1回答:1

我刚刚明确地导入了jar文件,并且出现了这个错误。我尝试过多种在线方式,但无法解决。

see picture 1

这是我导入的类路径。

see picture 2

eclipse classnotfoundexception
1个回答
0
投票

在JDK 9中,模块java.corba包含接口org.omg.CORBA.portable.IDLEntity is not resolved by default并且必须手动添加:

将模块java.corba添加到显式包含的模块described in this answer for java.xml.bind或使用Java 8 JRE / JDK。

blog post Prepare for JDK 9 by Yolande Poirier(由我强调):

默认情况下,JDK 9中不再共享JDK中的六个Java EE库。那些Java EE弃用的API是java.corbajava.transactionjava.activationjava.xml.bindjava.xml.wsjava.xml.ws.annotation。它们已在JDK 9中弃用,将在以后的版本中删除。它们在JDK 9中默认禁用。它们的包不能在Java 9中编译并给出错误消息。 documentation为您提供了迁移选项,以便在JDK 9中启用这些库。这应该是一个临时解决方案,因为它们计划在将来的版本中删除。

© www.soinside.com 2019 - 2024. All rights reserved.