从网页运行的Java小程序无法运行
您好,我创建了一个Java小程序并从netbeans成功运行(当按下记事本运行按钮时),但是当从网页运行应用程序时,notpad.exe无法运行
Hello I Create a Java applet and run successfully (when press button the notepad Run) form netbeans but when run the Application from web page the notpad.exe cannot be run
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Java 小程序默认在“沙箱”中运行,这意味着它无法访问用户的文件系统和程序。
当您在 netbean 中尝试时,情况会有所不同,因为“沙箱”不适用。
Applet 可以做什么和不能做什么
a Java applet run by default in a "sandbox" that means, it can't access to the user's file system and program.
When you try it, in your netbean, it's different because the "sandbox" isn't apply.
What Applets Can and Cannot Do
也许不允许java小程序在用户计算机上运行记事本?
Maybe it's not allowed for java applets to run notepad on user's computer ?
您必须获得小程序签名,以便您可以访问本机程序(.exe)。正如上面所说,目前它在沙盒模式下工作。签署小程序即可运行
You have to get applet signed, so that you can access Native programs(.exe). Like said above, Currently its working in sandbox mode. sign the applet and it will work