简体   繁体   English

从Java Applet调用系统功能或独立应用程序的解决方案

[英]Solution to call a system function or standalone application from Java Applet

Is there any way to call a system function or standalone application from a Java Applet? 有什么方法可以从Java Applet调用系统功能或独立应用程序吗? (and tweak the SecurityManager) ? (并调整SecurityManager)?

The problem is that I have this standalone java application that I have to control through an applet. 问题是我有这个独立的Java应用程序,必须通过applet对其进行控制。

Best regards, Xander 最好的问候,Xander

If this tweak exists the whole java security does not exist and all Sun engineers that developed it should go home. 如果存在这种调整,则整个Java安全性将不存在,因此开发此Java的所有Sun工程师都应该回到家。

So, obviously you cannot run any non secured code from applet unless it is signed. 因此,显然,除非经过签名,否则您无法从applet运行任何非安全代码。

If applet is unsigned you can just communicate with server where this applet has been downloaded from. 如果小程序未签名,则可以与从中下载了该小程序的服务器进行通信。 So, if you wish to make your stand alone application and applet to communicate you can either sign your applet or implement indirect communication via server. 因此,如果您希望独立的应用程序和applet进行通信,则可以签名applet或通过服务器实现间接通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM