HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Exception in application start method #203

Closed shadowwalkersteam closed 3 years ago

shadowwalkersteam commented 3 years ago

I cannot run the project, I have also tried Tilesfx too and I'm getting the error mentioned below. Unable to launch the demo.

8:51:57 am: Executing task 'Demo.main()'...

Starting Gradle Daemon...
Connected to the target VM, address: '127.0.0.1:50265', transport: 'socket'
Gradle Daemon started in 1 s 106 ms

> Configure project :
Found module name 'eu.hansolo.medusa'
Disconnected from the target VM, address: '127.0.0.1:50265', transport: 'socket'

> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
Connected to the target VM, address: 'localhost:50270', transport: 'socket'
Disconnected from the target VM, address: 'localhost:50270', transport: 'socket'
Connected to the target VM, address: '127.0.0.1:50265', transport: 'socket'

> Task :Demo.main()
Exception in Application start method

BUILD SUCCESSFUL in 10s
3 actionable tasks: 1 executed, 2 up-to-date
8:52:08 am: Task execution finished 'Demo.main()'.
Disconnected from the target VM, address: '127.0.0.1:50265', transport: 'socket'

This is the line where the program breaks and throw null pointer exception

Scene scene = new Scene(pane)

HanSolo commented 3 years ago

If you would like to start the demo from Intellij you either start the gradle task Demo that you can find in the list of other tasks in the gradle panel or you have to run the DemoLauncher class.