1

我有一个 java webstart 应用程序,应该在 LAN 专用网络网站上使用,所以它不供公众使用。我正在尝试通过调用此 api 通过 webstart 应用程序生成命令行窗口

 Runtime.getRuntime().exec("cmd.exe /c cd \""+strGenFolder+"\" & start cmd.exe /k \""+strCommandParas1+" \"");   

这在没有通过 jar 文件的 webstart 的情况下工作正常,但在 webstart 中它不会给出任何错误,也不会崩溃,但它根本不起作用。如果有任何方法可以在 webstart 中生成进程,请纠正我,即使我已经在其 jlnp 文件中授予了所有权限。

<security>
    <all-permissions/>
</security>

我在 webstart 方面没有太多经验,所以如果我说的很傻,请耐心等待。您的指导可以帮助我更好

4

1 回答 1

1

The cache in windows make problem in running the correct version of jws, to solve this you have to delete the cache folder.

go in the following directory C:\Users\ssc1\AppData\LocalLow\Sun\Java\Deployment and remove cache folder. Then refresh your web page and run your webstart, it will show you the updated version of your jws app.

于 2013-07-02T12:09:36.910 回答