aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 16

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: 39541
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.

Ping & DNS - updated with new look and Ping home screen widget
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36453
Too difficult a question for "beginning". Moving thread.
I agree. Here's the link:
subject: ActiveX like JARs
Similar Threads
accessing system info
Activex controls with Java
to open an exe within the internalframe
ActiveX to Java
Activex Object not defined in jsp