-
Notifications
You must be signed in to change notification settings - Fork 267
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
AsyncKt cannot access class com.sun.glass.ui.Application #1348
Comments
Yes welcome to the Java module system rolls eyes. You should probably apply these VM options via your build tool. My build gradle has this for example: Most of them are there to make JFoenix work but I plan to replace it entirely with the newer MaterialFX. |
you are using version 1.7.20, you need 2.0.0-SNAPSHOT. 1.7.20 - java8 |
Upgrading to 2.0.0 (SNAPSHOT) didn´t fix this problem. The jvm options to loosen the module restrictions fixed the export errors. Weird thing is For now I can work with that, but still makes me scratch my head.... |
When trying to execute an async restcall I get the following exeption.
class tornadofx.AsyncKt (in module tornadofx) cannot access class com.sun.glass.ui.Application (in module javafx.graphics) because module javafx.graphics does not export com.sun.glass.ui to module tornadofx
at tornadofx@1.7.20/tornadofx.AsyncKt.success(Async.kt:115)
at tornadofx@1.7.20/tornadofx.Component.ui(Component.kt:240)
pom and module-info.java added (with extention .txt to allow them to be attached)
pom.xml.txt
module-info.java.txt
tried different jdk's: openjdk 11.0.7 , corretto (amazon) 15.0.2
different versions for javafx: 17-ea+11/ 18-ea+7
any help appreciated
additional info:
Controller with restcall (calling the function directly returns desired results):
Async call:
The text was updated successfully, but these errors were encountered: