我在 Eclipse 中添加了 orb 插件并创建了一个 IDL 文件.我将 IDL 编译器配置到具有 IDL 文件的项目中.当我右键单击 IDL 文件时,有一个选项如下,CORBA->Compile CORBA Stubs 但是当我选择该选项时没有发生任何事情,所以如何在 Eclipse 中编译 IDL 文件并生成 Java 文件.请提供是否有任何步骤/程序可以遵循来编译 IDL文件并生成java源文件
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
谢谢
打开命令行并进入你的 IDL 文件所在的目录并运行此行
open the command line and go to the directory where you have your IDL file and run this line
idlj -fall nameOfIdlFile.idl
例如如果您的 idl 文件名为 HelloWorld.idl
e.g. if your idl file is named HelloWorld.idl
idlj -fall HelloWorld.idl
运行上面的命令行后,在你的根目录下会生成java类,即:
after running the above command line, in your root folder it will generate java classes namely:
希望这对您或将来遇到相同问题的任何人有所帮助.
Hope this will help you or anyone in the future with the same question.
这篇关于Eclipse IDL 编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!