Eclipse IDL编译 [英] Eclipse IDL compilation

查看:878
本文介绍了Eclipse IDL编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中添加了orb插件,并创建了一个IDL文件。我将IDL编译器配置为具有IDL文件的项目。当我点击IDL文件时,有一个选项如下,
CORBA->编译CORBA存根,但是当我选择该选项没有发生什么,所以如何在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

eg如果您的idl文件命名为 HelloWorld.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

  • 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编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆