java 如何在 Ubuntu 上安装 JavaFx?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10461890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 01:08:30  来源:igfitidea点击:

How to install JavaFx on Ubuntu?

javaubuntujavafx

提问by sriram

I downloaded the JavaFx preview from oracle home page. It's a zip file, I wonder how one could install it on Ubuntu 12.04 pc.

我从 oracle 主页下载了 JavaFx 预览版。这是一个 zip 文件,我想知道如何在 Ubuntu 12.04 pc 上安装它。

采纳答案by jewelsea

See the installation instructions on the JavaFX 2 release notes for Linux. http://docs.oracle.com/javafx/2/release_notes_linux/jfxpub-release_notes_linux.htm

请参阅 Linux 的 JavaFX 2 发行说明中的​​安装说明。 http://docs.oracle.com/javafx/2/release_notes_linux/jfxpub-release_notes_linux.htm

To install:? Download the JavaFX SDK zip file from http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

安装:?从http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html下载 JavaFX SDK zip 文件

Extract the SDK files from the zip file to a directory on your local file system.

将 SDK 文件从 zip 文件解压缩到本地文件系统上的目录。

There is more detailed info in these blog posts if you need it.

如果您需要,这些博客文章中有更详细的信息。

http://www.weiqigao.com/blog/2012/01/26/javafx_2_1_sdk_developer_preview_comes_to_linux.html

http://www.weiqigao.com/blog/2012/01/26/javafx_2_1_sdk_developer_preview_comes_to_linux.html

http://www.weiqigao.com/blog/2012/02/03/running_32_bit_javafx_2_1_beta_sdk_on_64_bit_ubuntu_11_10.html

http://www.weiqigao.com/blog/2012/02/03/running_32_bit_javafx_2_1_beta_sdk_on_64_bit_ubuntu_11_10.html

The blog posts also mention how to ensure that the correct codecs for media playback are installed.

博客文章还提到如何确保安装正确的媒体播放编解码器。

回答by Eugene Gr. Philippov

I found it simpler to install a plain Oracle non-GPL Java 1.8 JDK on Ubuntu, JavaFX is included there and works automagically.

我发现在 Ubuntu 上安装一个普通的 Oracle non-GPL Java 1.8 JDK 更简单,JavaFX 包含在那里并且自动工作。