Jacorb安装配置
1、到http://www.jacorb.org/download.html下载合适的版本并解压到本地,
2、设置环境变量
添加F:\jacorb-3.0\bin到path,并创建JACORB_HOME变量为F:\jacorb-3.0
3、修改idl.bat
F:\jacorb-3.0\bin目录下会自带一个idl.bat.tpl的文件,该文件只是一个示例,需要重命名为idl.bat
并修改文件内容。
当然要确保有java环境和JAVA_HOME变量
@echo off "%JAVA_HOME%\bin\java" -classpath "%JACORB_HOME%\lib\idl.jar;%CLASSPATH%" org.jacorb.idl.parser %*
4、在命令行中执行idl -h,显示帮助信息,说明已配置完成。
C:\Documents and Settings\Administrator>idl -h -h|help these few lines of help -v|version print version information -d dir root of directory tree for output -Dx define preprocessor symbol x with value 1 -Dx=y define preprocessor symbol x with value y -Idir set include path for idl files -U<symbol> undefine preprocessor symbol -W [1..4] debug level -all generate code for all IDL files, even included ones -forceOverwrite generate code even if IDL has not changed -ami_callback generate AMI reply handlers and sendc methods -ami_polling generate AMI poller and sendp methods -backend classname use classname as code generator -addbackend classname add classname as code generator -i2jpackage x:a.b.c replace IDL package name x by a.b.c in generate d Java code (e.g. CORBA:org.omg.CORBA) -i2jpackagefile <filename> replace IDL package names using list fr om <filename>. Format as above. -ir generate information required by the Interface Repositor y -nofinal generated Java code will contain no final class definiti ons -unchecked_narrow use unchecked_narrow in generated code f or IOR parameters in operations -noskel disables generation of POA skeletons -nostub disables generation of client stubs -diistub generate dii-based client stubs -cldc10 code generation compatible with J2ME/CLDC 1.0 -sloppy_forward allow forward declarations wo. later definitions -sloppy_names less strict checking of module name scoping -sloppy_identifiers Allow certain illegal identifiers. -permissive_rmic tolerate dubious IDL generated by JDK's rmic, in cludes -sloppy_names. -genEnhanced Generate toString and equals on stubs. Only supported on Struct currently. -generate_helper (portable[default]|jacorb|deprecated). Controls the con trols the compatibilty level of the generated helper code. -cacheplugin classname set plu gin for cache code generation -syntax syntax check only, no code generation <filelist>
编译IDL文件
执行以下命令:
C:\Documents and Settings\Administrator>idl -all -d F:\project\corbaTest -in F:\project\corbaTest\*.*
其中-d后的目录为生成代码的目录,-in后的目录为idl文件的所在目录
执行以下命令可以修改包名
C:\Documents and Settings\Administrator>idl -all -d F:\project\corbaTest -i2jpackagefile f:\format.txt -in F:\project\corbaTest\*.*
format.txt的内容
MyServer:com.cheng.MyServer
至此,使用jacorb将idl编译成java代码已完成
相关推荐
jbi4corba-0.8.1
资源分类:Python库 所属语言:Python 使用前提:需要解压 资源全名:ansys_corba-0.1.0-cp36-none-win_amd64.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
java开发corba接口MyEclipse或者Eclipse编译IDL文件为java文件的插件2
是一款和好的基于corba的orb产品。
corba-apps4.pdf, you can also get it from tao
corba-javaws-ssl 使用 Web Start 应用程序通过 SSL 测试 CORBA IIOP 的示例应用程序设置该项目需要安装 JacORB 3.5 以进行 IDL 编译和运行 CORBA 命名服务 webapp 应用程序配置为部署在 JBoss EAP 6.3.0 服务器中。...
JacORB的安装 添加JACORB_HOME C:\jacorb-2.3.1 修改CLASSPATH为 .;%JAVA_HOME%\jre\lib;%JACORB_HOME%\lib\antlr-2.7.2.jar; %JACORB_HOME%\lib\backport-util-concurrent.jar;%JACORB_HOME%\lib\idl.jar; %JACORB_...
CORBA技术系列丛书之-CORBA服务,对于CORBA开发技术讲的特别详细清楚,并针对不同语言的特征进行了系列的讲述
该程序是基于CORBA构建技术的一个小小实例程序,大家可以根据自己的兴趣自己改写。其中的.mht文档详细说明了程序的编译,运行的事宜。
fcrepo-misc.zip,fedora数据传输对象的foxml读写器库(此存储库已永久移动--请使用github.com/fcrepo/fcrepo misc)
支持JAVA语言的免费CORBA中间件产品
Java实现的CORBA接口版Helloworld,包含客户端和服务端
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用