简体   繁体   English

Java Web Start出现问题

[英]Trouble with Java Web Start

Trying to run my program through java web start. 尝试通过Java Web Start运行我的程序。 I get the following exception in the output console. 我在输出控制台中收到以下异常。 Im new to java web start so do any of you have any ideas? 我是Java Web Start的新手,所以你们有什么想法吗?

FYI, here is line 66 仅供参考,这是66行

ConfigFileReader cfg = new ConfigFileReader(BCApp.getConfigFileLocation());

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
    at JCS.Main$setStyle.setStyle(Main.java:66)
    at JCS.Main.main(Main.java:57)
    ... 9 more
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at GUI.BCApp.(BCApp.java:60)
    ... 11 more

You are going to want to read up on the security manager . 您将要阅读安全管理器 Because code launched through Java Web Start could potentially cause grave harm to client computers there are a lot of things it is usually not allowed to do. 由于通过Java Web Start启动的代码可能会对客户端计算机造成严重损害,因此通常不允许执行许多操作。 File system access is one of them. 文件系统访问是其中之一。 There are several ways to enable your Java Web Start app to access the file system detailed in the documentation. 有多种方法可以使Java Web Start应用程序访问文档中详细介绍的文件系统。

您的WS应用程序在安全沙箱环境中运行,这意味着它无法访问文件系统,除非a)您的应用程序已进行数字签名或b)您可以修改安全设置(不建议使用btw)。

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

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