posted 22 years ago
ActiveX is a Windows thing, and Java by its whole purpose refuses to do any platform-specific things, so Java has no native support for ActiveX. If you Google for "Java COM bridge" or "Java ActiveX bridge" you will find a variety of open source and commercial products. We had fair to good luck with Jacob from DanAdler.com. Adler lists some other resources, too.
I was tickled with how easy Visual J++ made it to create and use COM and ActiveX objects, but Sun was not. Bummer, cause if you were in a dedicated Windows/COM/ActiveX shop J++ was a nice alternative to VB.
Another option we have been forced to use a time or two is to write a C++ wrapper around the COM object, and call the wrapper from Java using JNI. Not real pretty, but it works.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi