Creating COM objects with Java

谁说我不能喝 提交于 2019-12-12 16:09:56

问题


To add support for some new features in a VB3.0 legacy application, I need to create a COM object in Java. I found some tutorials in the Internet, but they all refer to the discontinued javareg.exe tool distributed by Microsoft. I was unable to find a download place nor the MSJVM virtual machine required to run the COM object's code.

So, in nowadays, how can I expose a COM-object written in Java to any other application?


回答1:


Check the ActiveX Bridge.

The ActiveX Bridge allow a component based on JavaBeans(TM) component architecture ("bean") to be effectively packaged as an ActiveX control, thereby allowing it to be used as a functional component in an ActiveX container.

The official documentation : http://download.oracle.com/javase/6/docs/technotes/guides/beans/axbridge/developerguide/index.html

A short example : http://www.rgagnon.com/javadetails/java-0045.html



来源:https://stackoverflow.com/questions/5669709/creating-com-objects-with-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!