开发者

Java web app interacts with a COM component in users local machine

We are planning to use Java Applet which will be downloaded to users browser and communicate with the开发者_运维问答 com component using JNI. And also the applet will interact with the web page using Java Script.

Web page -> Javascript -> Applet -> JNI - > COM

The web page would display the data returned by the COM and also It can send the data back to the COM.

I wonder the experts here can point me to a right direction and suggests a better approach than this.

Thanks in advance, Ramesh


If you mean that you want to work with a MS COM object (ActiveX) then I suggest to take a look at JACOB. That's a bridge from java to COM. There are also other libraries out there that might help you, guess it depends on what you want to do. It won't be easy anyway.

You also have to get out of the applet sandbox to be allowed to do these things. Use a certificate for that.

I wouldn't know how to interact with javascript from an applet though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜