miho / VWorkflows

Flow Visualization Library for JavaFX and VRL-Studio
http://vworkflows.mihosoft.eu
Other
294 stars 67 forks source link

Error when running Main demo class in latest GitHub code #60

Open ddukki opened 7 years ago

ddukki commented 7 years ago

Clone the GitHub repository and tried to run the latest demo, (or even the simple tutorials found online). I'm getting the following error:

Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@671d3524[styleClass=window] and createDefaultSkin() returned null.
Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@4c3c8768[styleClass=window] and createDefaultSkin() returned null.
Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@2841215b[styleClass=window] and createDefaultSkin() returned null.
Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@1aeb0365[styleClass=window] and createDefaultSkin() returned null.
Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@53511811[styleClass=window] and createDefaultSkin() returned null.
Jul 12, 2017 1:28:24 PM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for FlowNodeWindow@4d9838ba[styleClass=window] and createDefaultSkin() returned null.
cbvms123 commented 7 years ago

How do you run the Demo class ? I just did run ./gradlew :vworkflows-demo:run using the latest source on a Fedora 24 box and JDK 1.8.0_102 and do not see the issue you have reported.

miho commented 7 years ago

Are you running a pre 1.8u40 JDK or maybe a JDK 9 EA?

ddukki commented 7 years ago

I'm running through Eclipse in Windows (no Gradle) and JDK 1.8u131. Haven't tried with JDK 9 EA.

miho commented 7 years ago

Can you try via command line? See comment by @cbvms123 . Do you still get the same error?

ddukki commented 7 years ago

Running it through Gradle seems to work just fine. Thanks! Is there something in the Gradle configuration that fixes the errors?

To do it myself without Gradle, I had to add the overridden createDefaultSkin() method in the FlowNodeWindow, MinimizeIcon, and CloseIcon classes.

miho commented 7 years ago

Glad you could fix it. Looks like you mix incompatible versions. Just see the dependencies{} block in the corresponding Gradle scripts.