Eclipse IDL compilation(Eclipse IDL 编译)
问题描述
我在 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:
- 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.
这篇关于Eclipse IDL 编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse IDL 编译


基础教程推荐
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01