JavaFX #462
Replies: 5 comments 40 replies
-
Hi @vsquared ! You can put the javafx jars in a jars subdirectory. py5 will check for the existence of such a directory and will add those jars to the classpath before starting the JVM. Jars must always be added to the classpath before the JVM is started. There is a good discussion about this that I will refer you to: https://discourse.processing.org/t/importing-a-java-pocessing-library-into-py5/44444/8 This will provide you with more information on importing jars. However, there is an extra twist: javafx has some weird import thing where you'll get a strange error when you try to add those jars to the classpath. And I vaguely remember getting py5 working with javafx at one point but stopped working on it. It can work but the weird error messages got annoying. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@villares
|
Beta Was this translation helpful? Give feedback.
-
For those who believe that it's impossible to run JavaFX from Imported Mode:
Issue: |
Beta Was this translation helpful? Give feedback.
-
Here's a revision of my original post which now runs without error in the Thonny editor with py5 plugin and Imported mode for py5 checked in the menubar py5 menu.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to run the JavaFX code shown below, I get this error:

Do you know a way that I could add JavaFX to the Thonny IDE? In Processing I can usually add all seven jar files to a data folder in the sketch folder and get it to run.
Beta Was this translation helpful? Give feedback.
All reactions