Skip to content

Demo project that shows how to create native Java applications with small runtime images (App.exe + Runtime etc.)

License

Notifications You must be signed in to change notification settings

psini/NativeJDK9AppTemplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeJDK9AppTemplate

Demo project that shows how to create native Java applications with small runtime images (App.exe + Runtime etc.).

Javapackager does not optimize for minimal runtime size. JLink on the other hand does not create native launchers (only launch scripts). This can be problematic, e.g., for app distribution to the Windows AppStore. Combining both commands results in optimal runtime images.

How to create the App Bundle

Requirements

  • Java >= 1.9
  • Internet connection (dependencies are downloaded automatically)
  • IDE: Gradle Plugin (not necessary for command line usage)

IDE

Open the VCollections Gradle project in your favourite IDE (tested with NetBeans 8.2) and build it by calling the createFinalAppBundle task.

Command Line

Navigate to the Gradle project (e.g., path/to/NativeJDK9AppTemplate) and enter the following command

Bash (Linux/OS X/Cygwin/other Unix-like shell)

sh gradlew createFinalAppBundle

Windows (CMD)

gradlew createFinalAppBundle

About

Demo project that shows how to create native Java applications with small runtime images (App.exe + Runtime etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%