Как установить javafx sdk

Release: JavaFX 2.1

Last Updated: April 2012

[+] Show/Hide Table of Contents

JavaFX 2.1 Installation Guide

1 JavaFX Installation for Microsoft Windows

2 JavaFX SDK 2.1 Installation for Mac OS X

We Welcome Your Comments

If you have questions about JavaFX, please go to the forum.

JavaFX 2.1 Installation Guide

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk

1 JavaFX Installation for Microsoft Windows

This page provides information about the installing the JavaFX 2.1 SDK on Microsoft Windows.

See the following topics:

Download the JavaFX Installer that Meets Your Needs

There are various ways that you can install JavaFX 2.1

You can install JDK 7 update 4 and JavaFX 2.1 SDK (including Runtimes) with a single installer. Get the JDK 7u4 installer at
http://www.oracle.com/technetwork/java/javase/downloads/

If you want to continue to run JDK 6 on Windows, you can download and install the JavaFX 2.1 SDK installer independently from JDK 7u4. The JavaFX SDK installer also installs the JavaFX 2.1 Runtime. Download the JavaFX 2.1 SDK from the JavaFX Downloads page at
http://www.oracle.com/technetwork/java/javafx/downloads/

If you only want to run JavaFX 2.1 applications but do not plan to develop them, download the JavaFX 2.1 Runtime installer from the JavaFX Downloads page

There is a 32-bit or 64-bit JavaFX available for whichever JDK you have installed. If you have both the 32-bit and 64-bit JDK installed, download the 64-bit JavaFX SDK.

Whichever installer you download, it is important that you check the system requirements at the following locations:

JavaFX Installation Instructions

Only one version of the JavaFX SDK and JavaFX Runtime can be installed at a time. The JavaFX Runtime installer will automatically uninstall previous versions.

If you plan to use NetBeans IDE, consider installing the JavaFX SDK to the default location. It will require less configuration. For more information, see Setting Up NetBeans IDE With JavaFX at
http://netbeans.org/kb/docs/java/javafx-setup.html

The default installation directory for the JavaFX 2.1 SDK is C:\Program Files\Oracle\JavaFX 2.1 SDK. See JavaFX SDK File Structure for the directories and contents.

The default installation directory for the JavaFX 2.1 Runtime is C:\Program Files\Oracle\JavaFX 2.1 Runtime.

For more information about JDK installation and system requirements, see the JDK Installation Guide at
http://docs.oracle.com/javase/7/docs/webnotes/install/

Installing NetBeans IDE

The JavaFX 2.1 SDK requires a minimum of NetBeans IDE 7.1.2. Download the NetBeans IDE from the JavaFX Downloads page.

For information about configuring NetBeans IDE to run with JavaFX, see Setting Up NetBeans IDE With JavaFX at
http://netbeans.org/kb/docs/java/javafx-setup.html

Viewing and Using JavaFX Samples

Sample JavaFX applications are available to download as a zip file from the JavaFX Downloads page.

Extract the files to your file system, then open samples_readme.txt for more information.

JavaFX Scene Builder

JavaFX Scene Builder is a design tool for the JavaFX platform. You can download it from the following location:
http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

JavaFX SDK File Structure

By default, the JavaFX SDK software is installed at C:\Program Files\Oracle\JavaFX 2.1 SDK. It contains the directories and content shown in Figure 1-1.

Figure 1-1 Directories and Content of the JavaFX SDK

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk
Description of «Figure 1-1 Directories and Content of the JavaFX SDK»

Contains the JavaFX Packager tool for compiling, packaging, signing, and deploying JavaFX applications.

Contains the API documentation. For online versions of the API documentation and JavaFX tutorials, see
http://docs.oracle.com/javafx/

Contains the following JavaFX utility jar files:

ant-javafx.jar: Ant tasks for packaging and deployment.

javafx-doclet.jar: A doclet for producing customized and nicely formatted documentation for the users of your JavaFX library.

javafx-mx.jar: A file used for debugging.

Contains a private, embedded copy of the JavaFX Runtime installation, used by JavaFX SDK development tools. You would typically point to the installed JavaFX Runtime instead, whose default location is C:\Program Files\Oracle\JavaFX 2.1 Runtime

This directory contains the same set of JAR files as the lib directory and is maintained for backward compatibility with NetBeans 7.1.1.

Copyright information for the JavaFX software and documentation.

Provides a link to the README index page for the Java SE, JavaFX SDK, JavaFX Runtime.

License information for third-party software included in the JavaFX SDK.

Uninstalling JavaFX

To uninstall JavaFX, use the standard Windows Add/Remove Programs utility in Control Panel. You must uninstall the JavaFX SDK and Runtime separately.

Troubleshooting

Here are some tips for working around problems that are sometimes seen during or following an installation.

If you installed the 64-bit version, you may have problems with applications that run on 32 bits. Note that the 32-bit version is compatible with both 32-bit and 64-bit systems, but the reverse is not true. See the JavaFX Supported System Configurations at
http://www.oracle.com/technetwork/java/javafx/downloads/supportedconfigurations-1506746.html

Try running the JavaFX pre-built samples. See Viewing and Using JavaFX Samples.

Check your JDK/JRE installation running a standard Java applet, Web Start application, or JAR application.

If you still have unresolved issues, go to the JavaFX Forum at

Источник

Учебник по JavaFX: начало работы

Привет, Хабр! Представляю вашему вниманию перевод статьи «JavaFX Tutorial: Getting started» автора Vojtech Ruzicka.

Как настроить и начать работать с JavaFX, с помощью Maven, Gradle или JavaFX SDK.

Все посты в серии JavaFX:

Установка Java

JavaFX, конечно, требует, чтобы у вас был установлен JDK. Получение необходимых зависимостей различается для разных версий Java.

JavaFX был представлен как часть выпуска Java 8. Однако позже он был удален из JDK и
перенесен в отдельный модуль в Java 11.

Это означает, что если вы ориентируетесь на Java 8-10, у вас есть все необходимые зависимости как часть вашего JDK уже. Ура! Если вы используете более новую версию Java — то есть 11+, вам нужно получить зависимости отдельно.

Maven

Получение и управление зависимостями вручную довольно неудобно, и в реальном приложении Вы бы редко так делали. Гораздо лучше использовать систему управления зависимостями, такую как Maven или Gradle. Таким образом, вы можете просто объявить, какие зависимости вы используете и какие версии, а система позаботится об остальном.

Архетип Maven

Конечно, вы можете настроить свой проект Maven вручную, с нуля. Тем не менее, вы можете предпочесть более удобный способ создания структуры и содержания базового проекта для вас с помощью Maven.

Maven имеет понятие архетипов, которое по существу означает, что вы можете создавать различные типы проекты из шаблона. Существуют многочисленные архетипы для различных типов проектов, и к счастью, есть пара для JavaFX. Архетип, который вы можете выбрать, зависит от того, какую версию Java вы используете.

Вы можете прочитать больше об архетипах Maven в следующем посте: Maven archetypes tutorial.

Архетип Java 8

Вы можете использовать com.zenjava:javafx-basic-archetype, или вы можете найти другие архетипы самостоятельно, если этот вам не подходит.

Вы можете легко сгенерировать проект из командной строки с помощью Maven, используя указанный выше архетип:

Кроме того, вы можете создать новый проект Maven из архетипа прямо в вашей IDE.

Архетип Java 11

Для создания проекта просто запустите:

Ручная настройка Maven

Если вы хотите больше контроля, вы можете настроить свой проект Maven вручную, не генерируя его из архетипа.

Для начала вам понадобятся два компонента. Первый — Maven Plugin для Java FX.

Просто добавьте следующее в ваш pom.xml:

Обратите внимание, что должен указывать на ваш основной класс, который имеет метод main и расширяет javafx.application.Application. Мы расскажем об этом в следующей статье серии.

Вторая часть добавляет зависимость для элементов управления JavaFX:

Gradle

Вы можете использовать неофициальный плагин Gradle Archetype и использовать архетипы Maven, упомянутые выше.
Кроме того, вы можете создать свой проект с помощью Maven из архетипа, а затем преобразовать его в проект Gradle с помощью следующей команды в каталоге, содержащем ваш pom.xml:

Ручная настройка Gradle

Как и в случае ручной настройки Maven, вам нужно добавить плагин JavaFX:

И зависимость для элементов управления:

JavaFX SDK

Есть еще одна возможность использовать JavaFX локально. Вы можете скачать JavaFX SDK. Он содержит все необходимые библиотеки, которые вы можете затем связать с проектом в вашей IDE или добавить в classpath.

Это может быть полезно, когда вы не знакомы с Gradle или Maven и просто для локальной разработки.

При распределении вашего приложения это становится неудобным, так как вам нужно убедиться, что вы включили все необходимые зависимости.

С помощью этой опции вы можете сгенерировать проект без Maven/Gradle в вашей IDE, который содержит все необходимые файлы. В IntelliJ IDEA вы можете просто перейти на:

Источник

Release: JavaFX 2.0.2

Last Updated: December 2011

[+] Show/Hide Table of Contents

We Welcome Your Comments

If you have questions about JavaFX, please go to the forum.

Installing JavaFX

Use Table 1 to determine the JavaFX installation that best suits your needs, then follow the instructions to install JavaFX.

Table 1 JavaFX Installations

You want to develop JavaFX applications using the latest JDK and NetBeans IDE.

You want to develop JavaFX applications using the latest JDK and have a Java IDE other than NetBeans IDE.

You want to develop JavaFX applications using either NetBeans IDE or the command line, and you are using a version of the JDK older than 7u2.

You only want to run JavaFX applications.

Install the Standalone JavaFX Runtime. If you installed the JavaFX SDK, then you do not need to download the JavaFX Runtime separately.

Install the JDK + JavaFX SDK Bundle

The JavaFX SDK and Runtime are included in the JDK, starting with Java SE 7 Update 2. Download the JDK bundle from the JavaFX Downloads page, then go to the JDK Installation Guide.

Install the Standalone JavaFX SDK

The standalone JavaFX SDK should only be installed if you are using a JDK older than 7u2.

To install the JavaFX SDK:

Find the JavaFX SDK downloads, click the link for your operating system, and follow the prompts to save the executable file.

The default installation directory for the SDK is C:\Program Files\Oracle\JavaFX 2.0 SDK. See JavaFX Samples for the directories and content.

The default installation directory for the Runtime is C:\Program Files\Oracle\JavaFX 2.0 Runtime.

Install the Standalone JavaFX Runtime

The standalone JavaFX Runtime should only be installed if you are an older version of the JDK than 7u2 and do not plan to install the JavaFX SDK.

To install the JavaFX Runtime:

Find the JavaFX Runtime downloads, click the link for your operating system, and follow the prompts to save the executable file.

The default installation directory is C:\Program Files\Oracle\JavaFX 2.0 Runtime.

Install NetBeans IDE

JavaFX 2.0.2 requires NetBeans IDE 7.1 (at least a prerelease version), which you can download from the JavaFX Downloads page.

See Setting Up NetBeans IDE With JavaFX for troubleshooting information.

JavaFX Samples

Sample JavaFX applications are available to download from the JavaFX Downloads page. Download the zip file that contains the samples and extract the files to your file system.

Source code for each sample is in the javafx-samples- version \src directory. To view the source code, go to the javafx-samples- version \src\ sample directory, where sample is the name of the application in which you are interested. Each of the sample source directories is a NetBeans project.

You must have NetBeans IDE 7.1 (at least a prerelease version) to build the samples in the IDE. The NetBeans download is available from the JavaFX Download page.

JavaFX SDK File Structure

By default, the JavaFX SDK software is installed at C:\Program Files\Oracle\JavaFX 2.0 SDK. It contains the directories and content shown in Figure 1.

Figure 1 Directories and Content of the JavaFX SDK

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk
Description of «Figure 1 Directories and Content of the JavaFX SDK»

JavaFX Runtime directory.

Ant tasks used by NetBeans for packaging and deployment.

Copyright information for the readme.html document.

A pointer to this document, which provides information about the JavaFX SDK.

License information for third-party software included in the JavaFX SDK.

Uninstall JavaFX

To uninstall JavaFX, use the standard uninstall process for your operating system. You must uninstall the JavaFX SDK and Runtime separately.

Источник

Installing the JavaFX SDK

This document applies to the following versions of the JavaFX SDK: 1.2, 1.2.1, 1.2.3.
January 2010

The JavaFX Software Development Kit (SDK) provides the command-line tools and technologies to develop expressive content for applications deployed to browsers, desktops, and mobile devices.

The JavaFX SDK runs on Windows and Mac OS X. A beta release of the JavaFX SDK is provided for Ubuntu Linux and the OpenSolaris operating systems.

Contents

System Requirements

The system requirements for the JavaFX SDK, including the recommended version of the Java SE Development Kit (JDK), are listed in the JavaFX System Requirements document.

Installing the JavaFX SDK on Windows or Mac

On Mac OS X, the installation procedure also creates the following directories:

For information about samples and documentation in the SDK, see the README file in the top level of the SDK directory.

Installing the JavaFX SDK on Ubuntu Linux or OpenSolaris

The shell script installs the JavaFX SDK in the current directory.

For information about samples and documentation in the SDK, see the README file in the top level of the SDK directory.

More Information

Discussion

We welcome your participation in our community. Please keep your comments civil and on point. You can optionally provide your email address to be notified of replies your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.

Источник

Release: JavaFX 2.1.1

Last Updated: June 2012

[+] Show/Hide Table of Contents

JavaFX 2.1.1 Installation Guide

1 JavaFX Installation for Microsoft Windows

2 JavaFX Installation for Mac OS X

We Welcome Your Comments

If you have questions about JavaFX, please go to the forum.

JavaFX 2.1.1 Installation Guide

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk

1 JavaFX Installation for Microsoft Windows

This page provides information about the installing the JavaFX 2.1.1 SDK on Microsoft Windows.

See the following topics:

Download the JavaFX Installer that Meets Your Needs

There are various ways that you can install JavaFX 2.1.1.

You can install JDK 7 update 5 (including the JRE) and JavaFX 2.1.1 SDK (including the JavaFX Runtime) with a single installer. Get the JDK 7u5 installer at
http://www.oracle.com/technetwork/java/javase/downloads/

If you want to use JavaFX with Java SE 6, this option is available for Windows only, and only until Java SE 6 reaches End-Of-Life in November 2012. To run JavaFX with Java SE 6, download and install the JavaFX 2.1.1 SDK standalone installer (which also installs the JavaFX 2.1.1 Runtime) from the JavaFX Downloads page at
http://www.oracle.com/technetwork/java/javafx/downloads/

If you only want to run JavaFX applications but do not plan to develop them, download the Java SE 7 update 5 JRE from the Java SE Downloads page at
http://www.oracle.com/technetwork/java/javase/downloads/index.html

For Windows installations, there is a 32-bit or 64-bit JavaFX available for whichever JDK you have installed. If you have both the 32-bit and 64-bit JDK installed, download the 64-bit JavaFX SDK.

Whichever installer you download, it is important that you check the system requirements at the following locations:

JavaFX Installation Instructions

Only one version of the JavaFX SDK and JavaFX Runtime can be installed at a time. The JavaFX Runtime installer will automatically uninstall previous versions.

Java Development Kit (JDK)

Java Runtime Environment (JRE)

JavaFX Software Development Kit (SDK)

The default installation directory for the JavaFX 2.1.1 SDK is C:\Program Files\Oracle\JavaFX 2.1 SDK. See JavaFX SDK File Structure for the directories and contents.

The default installation directory for the JavaFX 2.1.1 Runtime is C:\Program Files\Oracle\JavaFX 2.1 Runtime.

For more information about JDK installation and system requirements, see the JDK Installation Guide at
http://docs.oracle.com/javase/7/docs/webnotes/install/

Installing NetBeans IDE

The JavaFX 2.1.1 SDK requires a minimum of NetBeans IDE 7.1.2. Download the NetBeans IDE from the JavaFX Downloads page.

For information about configuring NetBeans IDE to run with JavaFX, see Setting Up NetBeans IDE With JavaFX at
http://netbeans.org/kb/docs/java/javafx-setup.html

Viewing and Using JavaFX Samples

Sample JavaFX applications are available to download as a zip file from the JavaFX Downloads page.

Extract the files to your file system, then open samples_readme.txt for more information.

JavaFX Scene Builder

JavaFX Scene Builder is a design tool for the JavaFX platform. You can download it from the following location:
http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

JavaFX SDK File Structure

By default, the JavaFX SDK software is installed at C:\Program Files\Oracle\JavaFX 2.1 SDK.

To verify that you have JavaFX 2.1.1 installed, go to Add/Remove Programs in Control Panel. JavaFX 2.1.1 and JavaFX 2.1.1 SDK will appear in the list of installed programs.

The JavaFX SDK contains the directories and content shown in Figure 1-1.

Figure 1-1 Directories and Content of the JavaFX SDK on Windows

Как установить javafx sdk. Смотреть фото Как установить javafx sdk. Смотреть картинку Как установить javafx sdk. Картинка про Как установить javafx sdk. Фото Как установить javafx sdk
Description of «Figure 1-1 Directories and Content of the JavaFX SDK on Windows»

Contains the JavaFX Packager tool for compiling, packaging, signing, and deploying JavaFX applications.

Contains the API documentation. For the online version of the API documentation and JavaFX tutorials, see
http://docs.oracle.com/javafx/

Contains the following JavaFX utility jar files:

ant-javafx.jar: Ant tasks for packaging and deployment.

javafx-doclet.jar: A doclet for producing customized and nicely formatted documentation for the users of your JavaFX library.

javafx-mx.jar: A file used for debugging.

Contains a private, embedded copy of the JavaFX Runtime installation, used by JavaFX SDK development tools. You would typically point to the installed JavaFX Runtime instead, whose default location is C:\Program Files\Oracle\JavaFX 2.1 Runtime

This directory contains the same set of JAR files as the lib directory and is maintained for backward compatibility with NetBeans 7.1.1.

Copyright information for the JavaFX software and documentation.

Provides a link to the README index page for the Java SE, JavaFX SDK, JavaFX Runtime.

License information for third-party software included in the JavaFX SDK.

Uninstalling JavaFX

To uninstall JavaFX, use the standard Windows Add/Remove Programs utility in Control Panel. You must uninstall the JavaFX SDK and Runtime separately.

Troubleshooting

Here are some tips for working around problems that are sometimes seen during or following an installation.

If you installed the 64-bit version, you may have problems with applications that run on 32 bits. Note that the 32-bit version is compatible with both 32-bit and 64-bit systems, but the reverse is not true. See the JavaFX Supported System Configurations at
http://www.oracle.com/technetwork/java/javafx/downloads/supportedconfigurations-1506746.html

Try running the JavaFX pre-built samples. See Viewing and Using JavaFX Samples.

Check your JDK/JRE installation running a standard Java applet, Web Start application, or standalone JAR application.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

What do You Want to Do?What to Install