开发者

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

开发者 https://www.devze.com 2023-01-12 03:46 出处:网络
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

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

精彩评论

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