Open ctoabidmaqbool opened 1 year ago
If I use JDK which not bundle JavaFx code not compiles as Javafx libs not found, I simple don't want to use javafx libs or plugins in gradle.build file as it's included in zulu jdk
JPro provides its own JavaFX Fork. It is not possible to start these JDK/JREs without its bundled JavaFX.
In my opinion, it's bad practice to use these JDKs. It has the big disadvantage that changing the JavaFX version is much more complicated.
It should be simple to just switch the JDK/JRE.
@FlorianKirmaier In my specific case, I use bundle Javafx with JDK (Zule) for desktop Applications. Because It's more easy to use bundle JFX and there is no need to add Javafx libs in class path (witch is little bit difficult). e.g. I am not using module.info and just add libs to class path.
In simple terms, I am not using javafx plugins noir adding javafx libs in dependencies tree for desktop applications. From now it's oky.
But jpro app not run (jproRun) with/without bundle jdk. Until I add javafx plugins or add javafx libs to depedencies?
I have two questions:
For compiling code it's needed javafx libs should be on class path. I think jpro own javafx libs are included at runtime not compile time?
1.) JPro requires its own JavaFX build. 2.) Actually JPro doesn't need other JavaFX-jars. But when you compile, you have to compile against some JavaFX Jars. Theoretically, you could also compile against the JPro JavaFX Jars. But usually, it's more convenient to just compile against the official JavaFX-jars - because we are binary compatible to them.
If you compile your project on ZuluFX, and then run it on another JDK/JRE with JPro, it should work without adding any javafx-jars to the dependency. But that's complicated. Usually, it's easier to just add JavaFX as a dependency.
I use
Zulu Java + JavaFX
for all of my apps. jPro not runs with bundle JavaFx. Why not it simply ignores bundle Javafx and use it own JavaFX?Any why to run jpro with bundle jdk by ignoring bundle jdk simpley?