views:

278

answers:

1

Hi all,

I have a Java application that needs to be able to open multiple different file formats and embed the document within my java JPanel. In Windows I can do this with jaco zoom & ActiveX but I will be working in Linux.

I have briefly researched npapi, mozswing, java plug-in technology, and bonobo & kparts.

I am hoping to hear from people who have tried to do such a thing, or people that have used the technologies I've just listed. I want to know which of those will work, or if there's another technology I haven't listed that will work better. Free is also better.

Please let me know.

Thanks, jbu

A: 

It looks like Jaco Zoom simply embeds some functionality that is already a part of Windows. My guess is that your question is like asking "How can I call the Win32 API on Linux using Java -- I already know how to call the Win32 API on Windows using Java".

Is there a technology like OLE embedding for Linux? You could use OpenOffice's provided beans to embed OO.O as a document viewer in your Java application.

Martin
the functionality that is part of windows is the windows specific applications like notepad or internet explorer. I don't need to use the win32 api on linux, I just need some API that allows me leverage existing applications. I looked at OOoBean, I'm not sure if it can handle html and...
jbu
it might be a little too complex.
jbu
I was under the impression that things like Jaco Zoom simply rely on the fact that OLE and COM APIs exist on Windows to find embeddable viewers for most of the documents. I am suggesting that even if you could find something in Linux to call out, those OLE and COM APIs won't be there.
Martin
Yeah, I realize OLE and COM won't be there. Is there an equivalent technology in linux that would allow me to do what I need?
jbu