-
Notifications
You must be signed in to change notification settings - Fork 2
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
JavaFX add-opens fiji.toml support #51
Comments
@karlduderstadt Thank you very much for testing this!
Yes, issue #38 tracks the need for this.
Java now has the module path as well as the classpath. Maybe if you add those JavaFX JARs to the module path, it will work. Right now, the fiji.toml Jaunch configuration adds only the imagej-launcher JAR to the classpath—unless you pass the Or, it may be that simply having them on the classpath at startup is sufficient to quelch the warnings. Do you see the warnings when you run in Python mode and/or with the
Platform-specific JARs go into a subfolder of |
Thanks for the prompt feedback. Sorry I was so slow to reply.
Wonderful! I didn't realize there was already an issue.
I tried using
This sounds like a great solution. I didn't know about this. Sounds like all the important details are being worked on. The warning are a minor issue and not urgent, but I guess in the long run it would be nice if there were no warnings. I will keep exploring. |
First of all, thank you for all your awesome work on jaunch! In my testing it works as expected/described!
I have several questions about JavaFX support as fiji migrates to jaunch and Java 11 and higher. I am not sure this will be the correct place for all of them, but I hope this is a good starting place.
The GUI for our collection of Fiji tools (Mars), uses JavaFX and depends on direct access to several JavaFX classes. Starting with Java 9, we now have the module system. I had to add the following lines to the fiji.toml for the Mars GUI to have the access needed to run:
Will it be possible to add these through update sites? Otherwise, could these be added to the fiji.toml?
When I launch fiji, with these lines added to the toml, I get the following warnings in the terminal:
I think I get these warning became now the JavaFX jars are no longer bundled with the JDK, but instead are now in the jars folder. I think the jars in the jars folder haven't yet been added to the class path during startup and perhaps this is why I receive these warnings.
Is there a way to prevent these warning from happening?
On my M2 Mac Studio machine, when compiling mars-fx in IntelliJ IDEA using the following pom, the following jars are added to the jars folder:
It seems the jars will depend on the java version as well as possibly the computer architecture. How should these jars be distributed? Can I somehow help with testing/evaluating what should be done? (maybe I should post this question elsewhere, but I am not really sure where)
The text was updated successfully, but these errors were encountered: