[英]Compile Java 11 with jacorb
I need to compile my java CORBA applications in java 11, which no longer includes an ORB implementation. 我需要在Java 11中编译我的Java CORBA应用程序,该应用程序不再包含ORB实现。
I have included jacorb.jar in the CLASSPATH
, but I'm still getting errors while compiling, not finding the CORBA imports: 我已经将jacorb.jar包含在CLASSPATH
,但是在编译时仍然出现错误,但是找不到CORBA导入:
import org.omg.CORBA.*
^
error: package org.omg.CORBA does not exist
Is there anything else I should do? 还有什么我应该做的?
The problem is that the JAR you're including in the classpath doesn't have that package. 问题是您要包括在类路径中的JAR没有该程序包。
You also need to include jacorb-omgapi.jar
. 您还需要包括jacorb-omgapi.jar
。
While you're at it you should do what the documentation says on page 14 and include all of 当你在它你应该做的文档 14页上说,包括所有的
acorb.jar
- containing the ORB, IMR, IR and NamingService acorb.jar
包含ORB,IMR,IR和NamingService jacorb-omgapi.jar
- containing the core OMG API stubs. jacorb-omgapi.jar
包含核心OMG API存根。 jacorb-services.jar
- containing all other services (eg Notification, DDS, Collection etc). jacorb-services.jar
包含所有其他服务(例如,Notification,DDS,Collection等)。 idl.jar
- containing the IDL compiler. idl.jar
包含IDL编译器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.