Javafx with intellij plugin

Answered
Hello, I created a GUI and I want to add this GUI to my plugin, but I have some troubles. If I will just add to some package in my plugin project, than i will add some modules to module-info.java file, then i'll get 100(maybe more) error like "the unnamed module reads package bla.bla (usual com.intellij or org.intellij) both bla and bla", and if I will just delete module-info.java file, then i'll get exception that my main GUI class not found. How can I connect javafx application with my plugin?
5 comments
Comment actions Permalink

Hi Pasha,

Using JavaFX is not a good decision as it is deprecated. See:
https://plugins.jetbrains.com/docs/intellij/jcef.html

If you still want to use it, then according to the instruction on the mentioned doc page, add the dependency on https://plugins.jetbrains.com/plugin/14250-javafx-runtime-for-plugins plugin.

0
Comment actions Permalink

It's not working, com.intellij.javafx not working, its just get red colour

0
Comment actions Permalink

See:
https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

It explains how to add plugin dependencies. I guess it’s missing the intellij.plugins entry in your Gradle build script.

0
Comment actions Permalink

I added dependency com.intellij.javafx in the plugin.xml, but after invoke main method in javafx gui class my plugin throws java.lang.ClassNotFoundException exception

0
Comment actions Permalink

Hi,

Please provide the full context. What is the Gradle build script (and related files) and what is the plugin.xml content?

0

Please sign in to leave a comment.