Can someone help me to get tornadofx running? I am...
# tornadofx
d
Can someone help me to get tornadofx running? I am using IntelliJ and tried downloading the plugin from marketplace. When i create a project i get vcs root mapping error, when i remove this error, i got the problem that javafx can't be found. After that i got the problem, that the used gradle seems to be wrong. Is there any easier approach how to get tornadofx running? I don't know how many errors are there coming, as it seems that everytime i solve a problem I get another one.
v
How did you create the project? What version of JDK are you using?
Here's a gist of a project I literally just started
Note that for that one you will also need a module-info.java on your base package
Copy code
/**
 * @author vinicius
 */module io.igx.emu {
    requires javafx.controls;
    requires javafx.graphics;
    requires tornadofx;
    requires kotlin.stdlib;

    opens io.igx.emu;
}
That uses JDK 13, and with the application plugin you can run your app as binary should work
if you can't use JDK 9 module system, them its a bit more complex but still doable bypassing the Java9 module loader
d
I tried with JDK 11, tried it with gradle and with maven. Tried setting it up with intelliJ simply by using the plugin and than doing fixes in the gradle or maven file.
currently i got the app starting, but nothing is shown, but i get two errors
Exception in thread "WindowsNativeRunloopThread" java.lang.NoSuchMethodError: <init> and Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
Getting closer.
java.lang.IllegalAccessException: class tornadofx.FXKt (in module tornadofx) cannot access class com.example.demo.view.MainView (in module com.example.demo) because module com.example.demo does not export com.example.demo.view to module tornadofx
v
what is you jdk version?
how are you running this?
that error is due java module system
I posted the module-info file you will need it
d
I am using JDK 11. I am starting it with IntelliJ IDE. The template which the IDE created when i created a new project created a 2nd package where the view is located, I added this package to the module-info and now it is working
thank you for your help
t
the exception point to tornadofx 1.7 and you are using jdk 11, please update the references to tornadofx 2.0.0-SNAPSHOT in order to make it works on JDK 11
g
I have it working with openjdk 11 and tornado 1.7.17
however async doesnt work