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

ActiveX like JARs

Srinivas Kothuri

Joined: Feb 08, 2010
Posts: 17

I worked in developing ActiveX components using c# to support some extra functionality at script level for Internet Explorer.
It was an ActiveX DLL.
Is the same possible using Java, like creating a JAR/library by which I can expose the Java objects as JavaScript entities?
To what extent Applets are helpful in this?

Thank you
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
You could embed an invisible applet on the page (maybe an applet that is 1 by 1 pixels large); then JavaScript can call public methods in that applet through a facility called "LiveConnect". See the AppletsFaq for some more detail on that.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46362
Too difficult a question for "beginning". Moving thread.
I agree. Here's the link:
subject: ActiveX like JARs
It's not a secret anymore!