java.lang.IllegalStateException: Toolkit not initialized

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by dzach
, 6 months ago
Toolkit not initialized
via wordpress.com by Unknown author, 1 year ago
java.lang.IllegalStateException: Toolkit not initialized
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:273)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:268)
at javafx.application.Platform.runLater(Platform.java:83)
at dekk.pw.pokemate.PokeMateUI.toast(PokeMateUI.java:244)
at dekk.pw.pokemate.tasks.CatchPokemon.run(CatchPokemon.java:55)
at dekk.pw.pokemate.tasks.TaskController.lambda$run$0(TaskController.java:41)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at dekk.pw.pokemate.tasks.TaskController.run(TaskController.java:41)

Users with the same issue

4 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.