File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes using microsoft COM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "using microsoft COM" Watch "using microsoft COM" New topic

using microsoft COM

Fedor Smirnoff
Ranch Hand

Joined: Apr 21, 2003
Posts: 45
Hey what is the best/easiest way to have java class interact with Microsoft COM? I know its not a good idea since application becomes platform dependant but I have no other choice since applications API that I am trying to integrate requires you to interact with COM
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Google for "Java Com Bridge". There are some commercial products out there and some freebies. I've played with Jacob from and it seemed ok for first level stuff, but I couldn't get to some of the COM interfaces I wanted. I chose not to bet my reputation on it. Apache Commons has something just for IO to Excel, I think but I never can remember the name. Let us know if you find a suitable solution!

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
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I've never used it, but you might want to take a look at Sun's Java Access Bridge For Windows Operating System.
I'm moving this to the Other Java APIs forum...
[ April 30, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: using microsoft COM
It's not a secret anymore!