-
Notifications
You must be signed in to change notification settings - Fork 0
lploom/javafx-11-modular-hello-world
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
// compile javac --module-path C:\javafx-sdk-11\lib --module-source-path src --module hellomodule -d build // run java --module-path C:\javafx-sdk-11\lib;build --module hellomodule/com.ameus.Main // create jar jar --create --file build\HelloWorld.jar -C build\hellomodule . // view jar contents jar tf build\HelloWorld.jar // view jar module info jar --describe-module --file build\HelloWorld.jar // run jar java --module-path C:\javafx-sdk-11\lib;build\HelloWorld.jar -m hellomodule/com.ameus.Main // create custom jre containing only the required modules jlink --module-path "%JAVA_HOME%\jmods;C:\javafx-jmods-11;build\hellomodule" --add-modules hellomodule --launcher start=hellomodule/com.ameus.Main --output dist // create another jre (compressed, smaller, suitable for production) jlink --module-path "%JAVA_HOME%\jmods;C:\javafx-jmods-11;build\hellomodule" --add-modules hellomodule --launcher start=hellomodule/com.ameus.Main --output dist-compressed --compress 2 --no-header-files --no-man-pages --strip-debug // run with the new jre using the launcher script we created in previous command dist\bin\start
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published