Java 小程序:从浏览器运行本机代码? [英] Java applet: run native code from browser?

查看:30
本文介绍了Java 小程序:从浏览器运行本机代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否仍然可以通过浏览器中的 Java 小程序在 Windows 下启动本机"应用程序?IE 网页上的单击此处启动 notepad.exe".我能找到的最新参考文献是 2002 年的.我想知道是否不再支持此模型/概念.

Is it still possible to start a 'native' application under windows via a java applet in a browser? IE "Click here to start notepad.exe" on a web page. The most recent reference I could find for this was dated 2002. Im wondering if this model / concept is no longer supported.

推荐答案

可以,但小程序必须签名.

Yes, but the applet has to be signed.

签名小程序 将提示用户授予他们权限.一旦获得,小程序就拥有与机器上运行的任何应用程序相同的权限,包括启动本机应用程序(或链接本机库,我过去必须这样做)的能力.

Signed applets will prompt the user to give them permission. Once given, the applet has the same rights as any application running on the machine, including the ability to launch native apps (or link native libraries, which I've had to do in the past).

这篇关于Java 小程序:从浏览器运行本机代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆