wiverson / maven-jpackage-template

Sample project illustrating building nice, small cross-platform JavaFX or Swing desktop apps with native installers while still using the standard Maven dependency system.
Apache License 2.0
351 stars 53 forks source link

Resulting image of app has NoClassDefFoundException only on windows #55

Closed lanthale closed 2 years ago

lanthale commented 2 years ago

I have switched from module path to the classpath with the app Photoslide and everything went smooth except one issue: On Windows the resulting image is throwing a NoClassNotFoundException. But the same packages are working on OSX and Linux. The class mentioning is a class inside of a modularized lib (librawfx) which is delivered with the package and placed on all OS on the classpath.

Normally I would change something but it seems that the issue is only shown under Windows. Starting the app from maven in Windows is working perfectly.

PhotoSlide app: https://github.com/lanthale/photoslide Lib with the issue: https://github.com/lanthaler/librawfx

Do you have an idea what could be the root cause ? It seems that