https://github.com/miho/nativejdk9apptemplate
Demo project that shows how to create native Java applications with small runtime images (App.exe + Runtime etc.)
https://github.com/miho/nativejdk9apptemplate
Last synced: 6 months ago
JSON representation
Demo project that shows how to create native Java applications with small runtime images (App.exe + Runtime etc.)
- Host: GitHub
- URL: https://github.com/miho/nativejdk9apptemplate
- Owner: miho
- License: apache-2.0
- Created: 2017-11-19T15:09:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-03T06:25:57.000Z (almost 7 years ago)
- Last Synced: 2025-04-06T19:38:06.441Z (9 months ago)
- Language: Java
- Homepage:
- Size: 62.5 KB
- Stars: 23
- Watchers: 6
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
## Video tutorial
[
](https://www.youtube.com/watch?v=2fWyhJ2nhjw)
## How to create the App Bundle
### Requirements
- Java 1.9 - 10 (12 coming soon)
- Internet connection (dependencies are downloaded automatically)
- IDE: [Gradle](http://www.gradle.org/) Plugin (not necessary for command line usage)
### IDE
Open the `NativeJDK9AppTemplate` [Gradle](http://www.gradle.org/) project in your favourite IDE (tested with NetBeans 8.2) and build it
by calling the `createFinalAppBundle` task.
### Command Line
Navigate to the [Gradle](http://www.gradle.org/) 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