-
Notifications
You must be signed in to change notification settings - Fork 59
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
Allow to run the application fully in the classpath #72
Comments
@betanzos I am trying to wrap my head around this comment. Why would an app running on Windows load linux related jars? Isn't this resolved automatically on Maven resulting in the correct libs being added to the module-path? |
Because in some cases we want to develop, and to distribute, an multiplatform-application (like in my example and in #58) as a fat jar. But this is just an example. I thing it is a good option to be able to run our app fully in classpath intead of modulepath since there are a huge number of maven artifacts that are incompatible with the Java Module System (some of them widely used). |
@betanzos Another question: Why would someone want to use the plugin if they want to run the entire application on classpath? This can be simply achieved by adding JavaFX jars as dependency and using the maven-exec-plugin to run the application. |
You're right, but for those who are used to working with this plugin with modular JavaFX apps, use it too with non-modular apps could be more natural. |
I has been develop this cross-platform application skeleton but I have problems to run it with
javafx:run
because this MOJO always add the javafx's JAR files in the modulepath.Windows example command executed by
javafx:run
This may cause some problems due to overlapping modules (duplicated) which are not reloaded. For example, when I run the app in Windows, only the JAR javafx-graphics-14-linux.jar are loaded as javafx.graphics module so Windows libs are missing and the app exits (if I run the app in linux work fine).
We can see the problem if run the app adding the JVM parameter
--show-module-resolution
(below output exclude all non related modules for simplicity):Having said that it would be useful to add a way to run the application fully on the classpath.
Windwos command we want to execute with
javafx:run
The text was updated successfully, but these errors were encountered: