Run Layrry on a custom runtime image
See original GitHub issueIdea Outline
Motivation: https://twitter.com/AlmasBaim/status/1336685347795857409
Applications: Game A | Game B | ...
-- Layrry --
Custom Runtime Image: java.base, ..., javafx.base, ..., com.almas.fxgl.all, ..., + natives
Let Layrry run and manage applications on a prepared custom runtime image that provides a set of shared modules as system modules.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
JavaFX 11+ jlink: Modular Runtime Image - YouTube
We build a modular runtime image of a JavaFX application using the JavaFX Maven plugin, available at: ...
Read more >Creating Custom JDK9 Runtime Images - YouTube
This video runs through a simple example of how to utilize a new feature with the upcoming JDK9 release: the ability to create...
Read more >Create a custom runtime image with jlink #19 - fonoster/routr
The following steps can be used to create a custom run-time image: Get the jmods list for the server's dependency with $JAVA_HOME/bin/jdeps --list-deps ......
Read more >What Is a Custom Runtime Image in Java 9? - Developer.com
It opens the door for a custom built application right from the platform on which it runs. The Java platform has increasing its...
Read more >Creating custom runtime image dedicated for specific modular ...
I have their modular JAR files in some bin directory. And I want to prepare lightweight JRE to run it. So obviously, I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright, so I did some investigation and I found the following:
Then ran latest Layrry against modular-tiles with the following configuration
And … it works! Which means all modules found in the image can be used by any layer. This means it’s possible to build a custom FXGL image and have it launch a layered application.
However, it has to be done by invoking the layrry-launcher JAR from the outside as this artifact is not yet modular, thus
If Layrry were to be modularized (see #12) then the launcher could be embedded into the image and make it part of the main class, thus resulting in
This is great as once we have #37 ready we could launch apps from anywhere, such as
Or implementing the “capsule”* deployment approach (a capsule contains the layers config file plus all required external JARs, packaged using either flat or default repo format)
note: Assuming the capsule launcher is built of course, currently only a wild idea.
Adding @AlmasB
For this to work the Layrry API would have to support defining module ids as inputs in its configuration. Right now only Maven coordinates are allowed, for example
Assuming there was a base jlink image with JavaFX modules then the previous example could be rewritten as