• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActiveX in a Java application

 
Annalisa B
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, is there anybody who can explain me how I can insert an ActiveX component in my Java application? I've only read about differences between java beans and ActiveX components, but no tips on how doing it. I'm developing with Eclipse. It's been quite easy with Visual J++, but I'd prefer to use Eclipse...
Every suggestion will be appreciated..
Thanks
Annalisa
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Annalisa B
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thenk you very much, you've been very clear and you detailed much where I can look for. You've also been the one who replied to me! It must not be so common to do what I'm trying to do, but I have an ActiveX and I' m trying to embed it in most of the applications...I'll look for where you suggested!
Thank you so much,
Annalisa
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic