Menu

#38 Simple -jar not working any more

7.0
open
1
2026-03-16
2026-03-16
No

Start with -jar not working any more. For Java 17 --add-exports java.desktop/com.apple.eawt=ALL-UNNAMED is needed. Which in turn means that the full start command for Lunux/Windows is now something like:

"${JAVA_HOME}/bin/java"                     \
    --add-exports java.desktop/com.apple.eawt=ALL-UNNAMED   \
    -Dfile.encoding=UTF-8                   \
    -enableassertions                       \
    -classpath "${JAVAROOT}/FX-602P-Desktop-7.2.10.jar"         \
    net.sourceforge.uiq3.fx602p.Main

This of course means I need to provide start scripts for Window and Linux as well. Something I didn't need up until now.

Discussion

MongoDB Logo MongoDB