You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to include modules / module paths in created java processes?
I'm trying to spawn JavaFx Applications in their own processes to encapsulate them, but have a small GUI just to give a visual indicator of theri progress. But since JavaFX ist now separated, it needs to be added as modules... Without that, the ClassLoader can't find the JavaFX Application-class...
When I create a simple JavaProcessPool new JavaProcessPoolExecutor(new JavaProcessManagerFactory<>(new SimpleJavaProcessConfig()), ... ), the classpath of the calling application will be in the child process as well, but this isn't true for modules.
I have outputted the module path in the calling app an in the child app (System.getProperty("jdk.module.path")) - for the calling, it contains javaFx, for the child it's just null.
It would be great, if the modules from the calling app could be added to the child process / to the child process's module path (–module-path ... and –add-modules ...). Or is there any workaround to get this happening?
Any thoughts? :-)
The text was updated successfully, but these errors were encountered:
Hi,
is it possible to include modules / module paths in created java processes?
I'm trying to spawn JavaFx Applications in their own processes to encapsulate them, but have a small GUI just to give a visual indicator of theri progress. But since JavaFX ist now separated, it needs to be added as modules... Without that, the ClassLoader can't find the JavaFX
Application
-class...See here for an example: https://blog.idrsolutions.com/using-javafx-with-java-11/
When I create a simple JavaProcessPool
new JavaProcessPoolExecutor(new JavaProcessManagerFactory<>(new SimpleJavaProcessConfig()), ... )
, the classpath of the calling application will be in the child process as well, but this isn't true for modules.I have outputted the module path in the calling app an in the child app (
System.getProperty("jdk.module.path")
) - for the calling, it contains javaFx, for the child it's justnull
.It would be great, if the modules from the calling app could be added to the child process / to the child process's module path (
–module-path ...
and–add-modules ...
). Or is there any workaround to get this happening?Any thoughts? :-)
The text was updated successfully, but these errors were encountered: