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

JavaFX 11 problems #38

Open
PatrickJP opened this issue Dec 7, 2018 · 9 comments
Open

JavaFX 11 problems #38

PatrickJP opened this issue Dec 7, 2018 · 9 comments

Comments

@PatrickJP
Copy link

Hi Robert,
I have been using DockFX for some time, and with javafx 8 everything was great! ... then came javafx 9 and above, and although I have overcome a number of "javafx does not export ... " problems I currently have one that --add-exports etc does not seem to solve: I getting the run-time error "class org.dockfx.DockEvent (in module DockingFramesFX11.Lib) cannot access class com.sun.javafx.scene.input.InputEventUtils (in module javafx.graphics) because javafx.graphics does not export com.sun.javafx.scene.input to module DockingFrames.Lib"
Where DockingFrames.Lib is an unnamed module and I have --add-exports=javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED set as an argument to VM.
Can you offer any solution or insight as to how I can get around this and any future javafx module access problems?
Thanks for any help you can give me.
Regards
Patrick Philips.

@RobertBColton
Copy link
Owner

Hi Patrick, I am terribly sorry but I have not been keeping up on the Java modularization efforts. I have been busy with other open source projects in C++/Qt. I will need to research some of the JVM changes at some point here and I'm terribly sorry I can't really offer any insight that you probably aren't already aware of.

I'll leave this ticket open and if I find time to build it with JavaFX11 myself I will reply here and update the ticket. Thank you.

@PatrickJP
Copy link
Author

PatrickJP commented Dec 8, 2018 via email

@jasons2000
Copy link

jasons2000 commented Dec 8, 2018 via email

@PatrickJP
Copy link
Author

PatrickJP commented Dec 8, 2018 via email

@schelldorfer
Copy link

My fork https://github.com/schelldorfer/DockFX is running on JDK 11 with OpenJFX.

@schelldorfer
Copy link

we had to add the following add-exports to the command line (some of them might be related to other libraries we're using)

--add-modules=javafx.controls,javafx.graphics
--module-path=/mps/lib/javafx-sdk-11.0.1/lib
--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.util=ALL-UNNAMED
--add-exports=javafx.base/com.sun.javafx.reflect=ALL-UNNAMED
--add-exports=javafx.base/com.sun.javafx.beans=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED
--add-exports=javafx.base/com.sun.javafx.logging=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.prism=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.geom.transform=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.glass.utils=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.font=ALL-UNNAMED
--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.prism.paint=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.scenario.effect=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.scenario.effect.impl=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.scenario.effect.impl.prism=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.text=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene.text=ALL-UNNAMED
--add-exports=javafx.graphics/javafx.scene.paint=ALL-UNNAMED
--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED
--add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED
--add-exports=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED \

@PatrickJP
Copy link
Author

PatrickJP commented Dec 14, 2018 via email

@linouxis9
Copy link

linouxis9 commented Jan 7, 2019

Hi @schelldorfer,
I'm having some issues using your fork.
For instance, when undocking a DockNode by dragging the node, the node is undocked but then it's impossible to attach it back or move the node at all, DockingButtons are sized and centered as if the JavaFX application was in fullscreen. However, everything works smoothly if you manually undock the DockNode using the DockTitleBar. This issue seems to only be reproducible on Linux, and no issues are to be found on Windows. No exceptions are logged. Any pointers on where the issue might be?

Best regards.
(CC: @RobertBColton)

hkmoon added a commit to hkmoon/DockFX that referenced this issue Aug 30, 2019
@RobertBColton
Copy link
Owner

RobertBColton commented Oct 30, 2020

Small update here, I've enabled Azure Pipelines on the repository in an attempt to get CI builds going and perhaps streamline further development of the project, but have run into some issues. If anybody experienced with the new Java 11 modularity is interested in helping take a look at #43 where I was trying to get the jar to build in Azure.

I was trying to get it to build against JDK 8 because I am not sure if users of this library are still interested in supporting Java 8 or not. If that is the case, then I'd like to retain JDK 8 support in the library for the foreseeable future. Regardless if anybody can get this building, say against OpenJDK11/OpenJFX11, and we can still target JDK 8 bytecode compatibility, then I am willing to accept the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants