aspose file tools*
The moose likes Applets and the fly likes load ActiveX object in Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "load ActiveX object in Applet" Watch "load ActiveX object in Applet" New topic
Author

load ActiveX object in Applet

Dan Murphy
Ranch Hand

Joined: Mar 29, 2005
Posts: 126
Hi,

I have a web application that processes events and audio received from a specialised microphone. The audio is processed by a Java applet that runs in the web page, but other events (microphone connected, microphone disconnected, microphone button pressed) are handled by an ActiveX object.

The ActiveX object traps these events and calls JavaScript code to handle them

Of course a problem with this approach is that it's completely IE dependent. I would prefer to load the ActiveX object within the applet, trap the events there and handle the events either within the applet, or JavaScript code called from the applet. This should then enable me to run the app in any browser that supports applets.

I'm not entirely sure how to go about implementing the solution I've proposed above - I guess I'll need some sort of Java-ActiveX bridge? If anyone can suggest how I might implement this, or propose an alternative solution, I'd be very grateful.

Thanks in advance,
Dan


SCJP, SCJD, SCWCD
John Kimball
Ranch Hand

Joined: Apr 13, 2009
Posts: 96
You'd still be relying on a Windows (maybe WINE) client.

Are you sure it's even worth the trouble?

Dan Murphy
Ranch Hand

Joined: Mar 29, 2005
Posts: 126
John Kimball wrote:You'd still be relying on a Windows (maybe WINE) client.

That's fine, my objective is to be browser-independent, not OS-independent
John Kimball
Ranch Hand

Joined: Apr 13, 2009
Posts: 96
I'd start here.

http://danadler.com/jacob/

I'm not familiar terribly familiar with applets, but if JNI is sandbox-restricted you'll also need to sign the applet.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41905
    
  63
See http://faq.javaranch.com/java/JavaIntermediateFaq#callingCom for some alternatives to Jacob.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: load ActiveX object in Applet