HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
694 stars 131 forks source link

Application is not running in Intellij IDE and JDK11. #199

Closed Chuntianhong closed 3 years ago

Chuntianhong commented 4 years ago

After download project and I tried to run in the IDE and JDK11. But it is failed to run. compile success. Seems I missed some setting. Would you suggest me?

HanSolo commented 4 years ago

It works totally fine if you start it from the gradle panel in Intellij. Select "Medusa" -> "Tasks" -> "other" -> "Demo". If you double click on that it should start. At least that's the way I start it on my machine where I took this screenshot from. Medusa Gauges and Clocks 2020-09-08 13-47-44

Chuntianhong commented 4 years ago

Thank you very much. Is there any special setting for it? For example JDK 11 or other something. I did JDK installation successfully, and seems it is compiled, but when the app starts, it is not lunched. In the console, I only can see exception.

From: Gerrit Grunwaldmailto:notifications@github.com Sent: Tuesday, September 8, 2020 7:51 PM To: HanSolo/Medusamailto:Medusa@noreply.github.com Cc: Chuntianhongmailto:chuntianhong@outlook.com; Authormailto:author@noreply.github.com Subject: Re: [HanSolo/Medusa] Application is not running in Intellij IDE and JDK11. (#199)

It works totally fine if you start it from the gradle panel in Intellij. Select "Medusa" -> "Tasks" -> "other" -> "Demo". If you double click on that it should start. At least that's the way I start it on my machine where I took this screenshot from. [Medusa Gauges and Clocks 2020-09-08 13-47-44]https://user-images.githubusercontent.com/62843/92472866-589bee00-f1da-11ea-8a27-cbf9f2c464e0.jpg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HanSolo/Medusa/issues/199#issuecomment-688816625, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYQQQB3SNS7SILVZNFWEYLSEYLFBANCNFSM4Q54XGJA.

HanSolo commented 4 years ago

Well you need to have JavaFX installed because it doesn't come with JDK11, you can find out more over at https://openjfx.io

Chuntianhong commented 4 years ago

Thank you very much. Project was gradle set and I thought it automatically download it. I will try again.

From: Gerrit Grunwaldmailto:notifications@github.com Sent: Tuesday, September 8, 2020 9:35 PM To: HanSolo/Medusamailto:Medusa@noreply.github.com Cc: Chuntianhongmailto:chuntianhong@outlook.com; Authormailto:author@noreply.github.com Subject: Re: [HanSolo/Medusa] Application is not running in Intellij IDE and JDK11. (#199)

Well you need to have JavaFX installed because it doesn't come with JDK11, you can find out more over at https://openjfx.io

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HanSolo/Medusa/issues/199#issuecomment-688873629, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJYQQQGFJXPCZ7VQUN62DSTSEYXKLANCNFSM4Q54XGJA.

Chuntianhong commented 4 years ago

Project is compiled successfully in Intellij. But when I try to run, app is not opened and I always get Exception.

image

Following is the Run log message.

Configure project : Found module name 'eu.hansolo.medusa'

Task :compileJava UP-TO-DATE Task :processResources UP-TO-DATE Task :classes UP-TO-DATE

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

BUILD SUCCESSFUL in 2s 3 actionable tasks: 1 executed, 2 up-to-date 4:49:51 PM: Task execution finished 'Demo.main()'.

shadowwalkersteam commented 3 years ago

Project is compiled successfully in Intellij. But when I try to run, app is not opened and I always get Exception.

image

Following is the Run log message.

Configure project : Found module name 'eu.hansolo.medusa'

Task :compileJava UP-TO-DATE Task :processResources UP-TO-DATE Task :classes UP-TO-DATE

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

BUILD SUCCESSFUL in 2s 3 actionable tasks: 1 executed, 2 up-to-date 4:49:51 PM: Task execution finished 'Demo.main()'.

I'm also getting the same exception

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.