• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ActiveX in a Java application

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic