JavaFX:最新版本的javafx-runtime [英] JavaFX: Latest version of javafx-runtime

查看:931
本文介绍了JavaFX:最新版本的javafx-runtime的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

javafx运行时的最新版本是什么?

What is the latest version of javafx runtime?

我尝试添加以下依赖项:

I tried to add the following dependency:

<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>javafx-runtime</artifactId>
    <version>2.2.25</version>
</dependency>

保存pom.xml时出现以下错误.

I get the following error while saving my pom.xml.

Missing artifact com.oracle:javafx-runtime:jar:2.2.25

我尝试更新项目依赖项,但这没有帮助.任何指针都会有所帮助.

I tried updating the project dependencies but that did not help. Any pointers will be helpful.

推荐答案

JavaFX的当前版本-10/3/2013

JavaFX的当前版本为JavaFX 2.2.40,并在Oracle Java 7u40内分发.

The current version of JavaFX is JavaFX 2.2.40 and is distributed inside Oracle Java 7u40.

您可以从以下位置获得Java7u40的开发套件:

You can get the development kit for Java7u40 from:

如果您只需要运行时而不需要开发套件的其余部分,可以在以下位置找到它:

And if you just need the runtime and not the rest of the development kit, it is available at:

关于JavaFX和Maven

我认为您正在尝试将JavaFX用作Maven依赖项.但是,JavaFX不在公共Maven存储库中托管.与Java运行时的其他部分(如Java集合库或Swing GUI工具包)相似,JavaFX不需要托管在Maven存储库中,因为它已包含在基础Java运行时中.

I think you are trying to use JavaFX as a Maven dependency. However, JavaFX is not hosted in a public Maven repository. Similar to other parts of the Java runtime like the Java collections libraries or the Swing GUI toolkit, JavaFX does not need to be hosted in a Maven repository as it is included as part of the underlying Java runtime.

要查看如何使用Maven中的JavaFX作为系统依赖项,请参阅Stackoverflow问题:

To see how to use JavaFX from Maven as system dependency, refer to the Stackoverflow question: Maven project with JavaFX (with jar file in `lib`).

如果您使用JavaFX和Maven,最好的解决方案可能是使用 JavaFX Maven插件.

If you are working with JavaFX and Maven, likely the best solution is to use the JavaFX Maven Plugin.

这篇关于JavaFX:最新版本的javafx-runtime的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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