Java-COM interop: implement a COM interface in Java

How can I implement vtable COM interface in java?

In the old days, I used the JVM Microsft, which was built in java-COM interaction. What is the equivalent for modern JRE?

Answers to a similar SO question suggested by JACOB. I looked at JACOB, but it is based on IDispatch and aims at managing Serial Serial. I need COM interfaces that are custom vtable (extension IUnknown), for example. IPersistStream, IOleWindow, IContextMenu, etc.

In my use case, I could implement all the specific features of COM in JNI, and the level of the JNI call is the corresponding interfaces in java. But I hope for a less painful solution.

This is for an open source project, so open source alternatives are preferred.

EDIT: Com4j looks promising. Looking through available documents, it does not seem to support IClassFactory registration, so a COM object (in java) can be created by non-java clients.

0
java windows native com
source share
1 answer

Com4J may be what you need. On the home page:

Binds directly to the vtable (non-IDispatch) interface for better performance and wider support for more COM interfaces.

+1
source share

All Articles