Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Chuntianhong opened this issue Sep 7, 2020 · 7 comments
Closed

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

Chuntianhong opened this issue Sep 7, 2020 · 7 comments

Comments

@Chuntianhong
Copy link

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
Copy link
Owner

HanSolo commented Sep 8, 2020

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
Copy link
Author

Chuntianhong commented Sep 8, 2020 via email

@HanSolo
Copy link
Owner

HanSolo commented Sep 8, 2020

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
Copy link
Author

Chuntianhong commented Sep 8, 2020 via email

@Chuntianhong
Copy link
Author

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
Copy link

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
Copy link
Owner

HanSolo commented Jan 6, 2021

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.

@HanSolo HanSolo closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants