Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Modular app with jlink/jpackage build #89

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

msgilligan
Copy link
Contributor

This uses the Badass JLink Gradle Plugin

What works:

To build the packaged app:
./gradlew build jgnash-fx:jpackage -x test

The packaged app will crash on start, needs more debugging

To run the modular app via Gradle:

./gradlew jgnash-fx:run

The app will start and display a window, but will crash on New or Open

Note: You’ll need the jpackage build from JDK 14 installed in the
directory pointed to by the env variable BADASS_JLINK_JPACKAGE_HOME

This uses the Badass JLink Gradle Plugin

What works:

To build the packaged app:
./gradlew build jgnash-fx:jpackage -x test

The packaged app will crash on start, needs more debugging

To run the modular app via Gradle:

./gradlew jgnash-fx:run

The app will start and display a window, but will crash on New or Open

Note: You’ll need the jpackage build from JDK 14 installed in the
directory pointed to by the env variable `BADASS_JLINK_JPACKAGE_HOME`
@ccavanaugh
Copy link
Owner

I went ahead and merged in the logging... I've needed it as well. Long term, the jlink approach is desirable. I think that with now having access to Gradle actions, it will make jlink possible without having full access to all OS's

@msgilligan
Copy link
Contributor Author

I went ahead and merged in the logging... I've needed it as well.

Yeah the silent failures in start() are a PITA. There must be a more generic solution for that issue (maybe in some of the JavaFX frameworks?)

Long term, the jlink approach is desirable. I think that with now having access to Gradle actions, it will make jlink possible without having full access to all OS's

I think that is true for jlink, but not for jpackage. I've been using both mostly on the macOS platform and am just starting to branch out to Linux and Windows for my Bitcoin wallet application. I'll let you know as I learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants