怎样用java做组件,java如何调用Com组件

HTML codeInstall the above eclipse software. You need both eclipse J2EE and the EMF.

Install the plugin. You can download it from here. JacobGen-1.0.02.zip

Extract the zip file to d:\eclipse. It will place four files there

jacob x86 and 64

jacobgen

plugins\jacobGenerator-1.0.01.jar

Not sure why but you may have to open a command box and type eclipse -clean

Start eclipse, select your workspace with a COM dll, exe, or tlb file.

Right click on the file (.tlb, .dll or .exe) to bring up the properties dialog. Select "Jacob Generator" then "Generate genmodel".

Refresh the project by selecting it and press F5

Open up the model directory

select the file company.ecore

Right click on it and press "New" then "Other.."

Choose the "EMF MODEL"

Press Next three or four times

Press Load

Press Next, Next, Finish

Open the new file company.genmodel

Window -> Show View -> Properties

Change these Model Class Defaults

Public Constructors = true

Change these Model settings

Model Directory = <>

Suppress EMF Metadata = true

Suppress EMF Model Tags = true

Suppress Interfaces =true

Suppress Notification = false

Change these Model Feature Defaults

Suppress EMF Types = true

Suppress Unsettable = true

Change Templates & Merge to

Code Formatting = true

Dynamic Templates = true

Force Overwrite = true

Template Directory = /JacobGeneratorEngine/templates

Save the file

Close the file

Open the company.genmodel again

Right click on the element Company

Click "Generate Model Code". This takes at least 30 minutes for Excel and around 5 minutes for Word.

You are done :-D

------解决方案--------------------

这个说明网页现在好像没了只有快照了:

http://74.125.127.160/search?q=cache:xSQHF7s7fPUJ:jacob-project.wiki.sourceforge.net/Jacob%2BGen%2BPlugin+jacobgen+download+jacobgen+download&cd=10&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy29zbjeB2s8hXt0wOCPwXjCc2vS6sQ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值