为什么我得到:没有有效的JFX运行时 [英] Why do I get: No valid JFX runtime

查看:78
本文介绍了为什么我得到:没有有效的JFX运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Java 1.6编译并使用jnlp/webstart运行的现有应用程序.如果我从使用JRE 1.6的客户端运行此应用程序,一切都很好.但是,当我使用Java JDK 7编译代码并使用JRE 1.7.67运行客户端时,我看到了Java 7初始屏幕,似乎什么也没有发生.

I have an existing application that is compiled with java 1.6 and runs with jnlp/webstart. If I run this application from the client with JRE 1.6 everything is fine. But when I compile the code with java JDK 7 and run the client with JRE 1.7.67 I see the java 7 splash screen and nothing else seems to happen.

下面我粘贴了日志文件....有人可以给出一个很好的理由来说明为什么该应用程序无法启动吗?令我困扰的另一件事是,现有的代码已经写了10年了,而且还没有任何JavaFX代码.

Below I pasted the log file....can anyone give a good reason why the application is not started? The other thing that bothers me is that the existing code was written 10 years a go and has not got any javaFX code.

Log started: wo, 24 dec 2014 15:59:52 +0100
Java Plug-in 10.67.2.01
Using JRE version
 1.7.0_67-b01 Java HotSpot(TM) 64-Bit Server VM
basic: No valid JFX runtime at [C:\Program Files\Java\jre7\bin\javaw.exe]
basic: Running JVMParams: [JVMParameters: isSecure: true, args:]
    -> [JVMParameters: isSecure: true, args:]
temp: new XMLParser with source:
temp: <?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost/test" href="db/webstart/cache.jnlp">
  <information>
    <title>Test app</title>
    <vendor>Implemented by Test</vendor>
    <description>Cache Cleaner</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.7" />
    <property name="user.language" value="nl"/>
    <property name="user.country" value="NL"/>

    <jar href="lib/test.jar" main="true"/>
  </resources>

  <application-desc main-class="org.test.jnlp.CacheCleaner" >
    <argument>http://localhost/test.jnlp</argument>
  </application-desc>
</jnlp>

推荐答案

从内存中,当我在一两年前升级JDK时,我还注意到JavaWS应用程序不再成功启动.

From memory, when I upgraded my JDK a year or two ago I also noticed that JavaWS applications no longer launched successfully.

通过谷歌搜索,我发现默认的安全设置已更改.

With a bit of Googling, I found that the default security settings had changed.

您可能遇到相同的问题,因此您可能必须将一些URL添加到允许的列表中.

You may have the same problem, so you may have to add some URLs to an allowed list.

在Linux系统上,我相信这是通过从JDK运行jcontrol来实现的.

On a linux system I believe this was achieved by running jcontrol from the JDK.

这篇关于为什么我得到:没有有效的JFX运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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