JPackageScriptFX | tutorial project featuring a build script

 by   dlemmermann Shell Version: Current License: Apache-2.0

kandi X-RAY | JPackageScriptFX Summary

kandi X-RAY | JPackageScriptFX Summary

JPackageScriptFX is a Shell library typically used in User Interface, JavaFX applications. JPackageScriptFX has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This project demonstrates how projects can use scripts to build self-contained, platform-specific executables and installers of their JavaFX applications via the jdeps, jlink, and jpackage tools. Two scripts are included for running builds on Mac/Linux and Windows. The jpackage tool is bundled with the JDK since version 14. Important: the scripts do not try to create a fully modularized solution but instead try to enable existing projects / applications, which often use non-modularized 3rd party dependencies, to be packaged again after the previous packaging tool stopped working since Java 11.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              JPackageScriptFX has a low active ecosystem.
              It has 203 star(s) with 27 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 13 have been closed. On average issues are closed in 8 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of JPackageScriptFX is current.

            kandi-Quality Quality

              JPackageScriptFX has 0 bugs and 1 code smells.

            kandi-Security Security

              JPackageScriptFX has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              JPackageScriptFX code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              JPackageScriptFX is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              JPackageScriptFX releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 318 lines of code, 5 functions and 8 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of JPackageScriptFX
            Get all kandi verified functions for this library.

            JPackageScriptFX Key Features

            No Key Features are available at this moment for JPackageScriptFX.

            JPackageScriptFX Examples and Code Snippets

            No Code Snippets are available at this moment for JPackageScriptFX.

            Community Discussions

            QUESTION

            Unable to create package with jlink
            Asked 2022-Jan-28 at 03:49

            My pom includes the itext7-core artifact.

            ...

            ANSWER

            Answered 2022-Jan-28 at 03:49

            The solution with JPackageScriptFX is the best. Thanks Jewelsea. Jmods from javafx copied to C:/jdk/jmods. Then in bat file

            Source https://stackoverflow.com/questions/70821698

            QUESTION

            Distributing JavaFX Applications that use automodules
            Asked 2021-Apr-22 at 13:11

            I have created a JavaFX application. It runs perfectly in my Intellij IDE. Now I want to distribute the application - i.e. I want to obtain an installer that users could download and then it would install the application for them.

            I found a very interesting article about this here. This blog article basically describes what I want to achieve. There are two differences though:

            1. I am using Maven and not Gradle

            2. I have dependencies which use automodules such as iText7 and apache.commons.lang3

            The usage of automodules is making things very complicated. There is a GitHub project called ModiTect (here) that has been written to solve these issues. I have no experience in using ModiTect though and even my Maven knowledge is barely existent (meaning: I don't really know what I am doing in the pom.xml).

            What I am looking for is an explanation (step-by-step) as on how to integrate ModiTect (and if necessary jpackage) into my pom.xml in order to obtain an installer for my JavaFX application that uses automodules (and also a sqlite database, which shouldn't be a problem though).

            Can somebody provide this explanation or refer me to a tutorial?

            I provide a MWE at the end of this question. The MWE ist a TestApp. To illustrate the problem, run the application and press the "Print PDF" button. A pdf is created in resources --> pdf

            The MWE will compile and run when executing javafx:run There will be an error related to the usage of automodules when executing javafx:jlink

            I don't know how to fix this. ModiTect appears to be a promising addon. Another possible way can be found in this GitHub repo. But as I said before: My Maven knowledge is not sufficient to really grasp what is going on here. Any help would mean a lot to me!

            MWE:

            pom.xml:

            ...

            ANSWER

            Answered 2021-Apr-22 at 13:11

            Instead of the javafx maven plugin you could use the moditect plugin to create missing module-info to auto module dependencies and then build the image with moditect.

            Such a pom for you could be something like:

            Source https://stackoverflow.com/questions/67035353

            QUESTION

            How do I compute the file path for a user-written settings file in Java (JavaFX) that is compatible with Linux, Mac and Windows?
            Asked 2020-Jan-28 at 18:53

            My JavaFX program needs to compute a file name path for various user-written files such as the product-specific preferences. For example, "Do you want to open your previous file the next time the program starts" and so on. I have successfully experimented with https://github.com/dlemmermann/JPackageScriptFX and "jpackage" for Windows at least, so it looks like I will shortly need a way to code, in a cross-platform manner, the "correct" path in which to store such files.

            Is there a standard API or coding technique that will give me a file path that the program can write using user permissions that is "correct" for these native platforms?

            ...

            ANSWER

            Answered 2020-Jan-28 at 18:53

            I am not aware of a single piece of software which would do that but I think my answer to this questions Java - Cross-platform filepath may be helpfull for you. It also mentions how the same can be achieved on Android for example.

            Source https://stackoverflow.com/questions/59949314

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install JPackageScriptFX

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dlemmermann/JPackageScriptFX.git

          • CLI

            gh repo clone dlemmermann/JPackageScriptFX

          • sshUrl

            git@github.com:dlemmermann/JPackageScriptFX.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Shell Libraries

            awesome

            by sindresorhus

            ohmyzsh

            by ohmyzsh

            realworld

            by gothinkster

            nvm

            by nvm-sh

            papers-we-love

            by papers-we-love

            Try Top Libraries by dlemmermann

            GMapsFX

            by dlemmermannJava

            jfxcentral-data

            by dlemmermannJava

            JProCalendarFX

            by dlemmermannJava

            shadow-fields

            by dlemmermannJava

            jfxcentral

            by dlemmermannJava