Skip to content

JavaFX preview

Alexander Schwartz edited this page Aug 10, 2020 · 13 revisions

Why to use the JavaFX preview

The JavaFX preview provides better HTML preview and additional features like scoll-to-view and opening links in the browser.

When you can use JavaFX preview

The JavaFX preview works on a 64bit JDK and needs JavaFX installed. Please use the JDK provided by JetBrains for best results. Please use the JetBrains OpenJDK 11 runtime whenever possible.

Selecting a different JetBrains JDK using the "Choose Runtime" plugin

This is recommended for Android Studio 4.0 that includes JetBrains OpenJDK 8 as default without JavaFX support.

  • Install the plugin "Choose Runtime" as described in the JetBrains knowledge base “Selecting the JDK version the IDE will run under”.

  • Choose a runtime "jbrsdk-11_0_7-…​-x64-b956.14.tar.gz" or later and install it. The IDE will restart.

  • Go to the settings of the AsciiDoc plugin and check if the preview is set to “JavaFX WebView”. Change it to “JavaFX WebView” if this is not the case.

Known Problems with Non-JetBrains-JDKs

  • OpenJDK installations provided on Linux OS sometimes don’t include JavaFX, therefore the JavaFX preview is not available. Please use the JetBrains JDK.

  • Oracle JDK JavaFX package on Windows is less stable compared to the OpenJDK provided by Jetbrains and might lead to a crashing IDE. Please use the JetBrains JDK.

Clone this wiki locally