Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How Can Java communicate with COM Objects?

 
Bartender
Posts: 1829
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Is it possible for Java to communicate (interact) with COM (or ActiveX) objects directly?

I realize this is two questions (COM and ActiveX), but I'm not sure if one or both are possible?

Are there some references somebody could point me to?

Thanks.

-- Mike
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not natively. Sun wanted Java to be OS independent and any COM or ActiveX code wouldn't run on every OS and phone and whatever.

There are a bunch of packages out there to help you do it, though. Google for "java com bridge" or "java activex bridge" and you'll find a lot of hits, some free, some very expensive. One solution called POI has custom APIs for specific office products, I think. Haven't tried it first hand.
 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JACOB is pretty good. I remember there was a similar query few days ago and someone had mentioned JACOB. We tried it a little bit and it seems to work pretty well. Here is the thread https://coderanch.com/t/399062/java/java/Equivalent-COM-OLE

Hope that helps
 
Jayesh Lalwani
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Stan James:
Not natively. Sun wanted Java to be OS independent and any COM or ActiveX code wouldn't run on every OS and phone and whatever.

There are a bunch of packages out there to help you do it, though. Google for "java com bridge" or "java activex bridge" and you'll find a lot of hits, some free, some very expensive. One solution called POI has custom APIs for specific office products, I think. Haven't tried it first hand.



POI is not mature enough yet. It works ok for excel files, but it does'nt support Word properly.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic