Hello developers I have installed Intelij TornadoF...
# tornadofx
d
Hello developers I have installed Intelij TornadoFX plugin and created a gradle project then when I run it, the ide only says failed as the screenshot, and when tried to run "gradlew run" in the terminal it runs successfully, what might be the problem. also "gradle scan" doesn't have errors, link: https://scans.gradle.com/s/hps6fjpr6hcdy Project JDK: java 1.8.0_251
d
Sorry, missread first time. Your Idea looks like if IntelliJ did not pick up an JDK for your project, can you check that?
d
nevermind, how can i check the JDK, in project structure ?
e
Right-click your “synconi” folder, there should be a “module options” entry in the right-click menu
d
Or Ctrl-Alt-Shift-S and in that menu "Project" - there should be projectsdk selected
d
here it is, its Java 1.8.0_251
d
But your idea did not pick up any gradle tasks right? the gradle plugin on the right of your first picture is empty.. thats kind a odd. Your run-configuration looks also different from what i would assume
Something like this it should rather look like - of course you can set as RunConfig also a gradle task .. but the gradle plugin shouldnt be empty, in case you use Gradle
d
yea, its empty no tasks
s
I've seen that when the gradle jvm is not set correctly in the the settings, I think under build tools-> gradle
👍 1
d
what's maybe wrong with the settings?, also it already working on SpringBoot Gradle projects
d
Maybe your wrapper-task has no gradle defined?
Just a shot in the dark.. you got that files and a valid distributionUrl defined in there
d
yes here it's code
Copy code
distributionUrl=https\:<//services.gradle.org/distributions/gradle-4.4-bin.zip>
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
d
Could then try this option instead? And you could use a newer version of gradle if you like..
Copy code
distributionUrl=https\:<//services.gradle.org/distributions/gradle-6.3-all.zip>
d
i will install openJdk and back to you then, it might take sometime cause of internet connection for now
d
Sorry i didnt meant you need openjdk - its just what i use.. but shouldnt matter. Java8 is also totally fine for the tornado 1.7.x - you would run into problems with java11. I use the snapshot version, thats why i am on 11 there. To complete the picture - from java 9 on there is the modul system in which they extracted javafx out. So you will need extra work to get openfx back into your classpath - not sure if thats important for you right now when you just want to get things running 🙂
d
thanks alot for the calorification, i was searching about implementing JavaFX too. should I download the java 11 openJdk form developers.redhat.com ?
d
I use linux - i do not know how its done on windows.
Oh, i just saw how to add the gradle to the build..
task wrapper(type: Wrapper) {   distributionUrl = "<https://services.gradle.org/distributions/gradle-${project.ext.gradle_version}-all.zip>"   }
d
thank you so much, it did work 🎊
🙂 1