Enable markdown plugin on Linux without switching to bundled JVM

Answered

Hello,

 

I'm trying to use Markdown plugin and I'm getting the infamous JavaFX error (https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008215579-Markdown-plugin-not-working-Getting-Try-to-use-preview-panel-provider-JavaFX-WebView-but-it-is-unavailable-error-dialog-when-trying-to-access-README-md)

Solution appears to be to switch to bundled JVM. However, this will cause all my Gradle builds started from IDE to not share daemon with Gradle builds started from command line (since JVMs will not match), which will increase memory usage and make builds slower.

Is there a better solution to this issue?

Thanks.

0
5 comments

Is it a solution for you to enable "Build an Run using Gradle" under Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Gradle and choose Gradle JVM (https://www.jetbrains.com/help/idea/gradle-jvm-selection.html)?

0
Avatar
Permanently deleted user

Thanks, this works on IntelliJ. What about IntelliJ based IDEs that don't have this option (such as Android Studio)?

 

0

Gradle in Android Studio is being configured by Gradle wrapper. Please check "gradle/wrapper/gradle-wrapper.properties" file.

 

0
Avatar
Permanently deleted user

Which property in the wrapper determines the used JVM? I can't find any on the linked page.

 

0

In gradle-wrapper.properties you can choose the Gradle distribution to run (distributionUrl) 

In order to specify JVM for Gradle, you need to change "org.gradle.java.home" option in "gradle.properties"

0

Please sign in to leave a comment.