idl文件生成java,Eclipse IDL编译

本文指导如何在Eclipse中配置并使用IDL Compiler编译CORBA IDL文件,包括步骤详解:创建项目、设置编译选项,以及通过命令行手动编译生成HelloWorld.java等Java源文件。
摘要由CSDN通过智能技术生成

I added orb plug-in to Eclipse and created an IDL file.I configured IDL Compiler to the project which has IDL file.When i rigth-click on the IDL file there is an option as follows,

CORBA->Compile CORBA Stubs but when i choose that option nothing was happened,so how to compile IDL file in eclipse and generate Java files.Please provide if there is any steps/procedures to follow to compile IDL file and generate java source files

Thanks

解决方案

open the command line and go to the directory where you have your IDL file and run this line

idlj -fall nameOfIdlFile.idl

e.g. if your idl file is named HelloWorld.idl

idlj -fall HelloWorld.idl

after running the above command line, in your root folder it will generate java classes namely:

HelloWorld.java

HelloWorldPOA.java

HelloWorldStub.java

HelloWorldHelper.java

HelloWorldOperations.java

HelloWorldHolder.java.

Hope this will help you or anyone in the future with the same question.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值