Search code examples
javacom

Creating COM objects with Java


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?


Solution

  • 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