javafx-maven-plugin | Maven plugin to run JavaFX 11+ applications

 by   openjfx Java Version: 0.0.8 License: Apache-2.0

kandi X-RAY | javafx-maven-plugin Summary

kandi X-RAY | javafx-maven-plugin Summary

javafx-maven-plugin is a Java library typically used in User Interface, Gradle, Maven, JavaFX, Eclipse applications. javafx-maven-plugin has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.

Maven plugin to run JavaFX 11+ applications
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              javafx-maven-plugin has a low active ecosystem.
              It has 306 star(s) with 49 fork(s). There are 20 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 55 open issues and 52 have been closed. On average issues are closed in 91 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of javafx-maven-plugin is 0.0.8

            kandi-Quality Quality

              javafx-maven-plugin has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              javafx-maven-plugin 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

              javafx-maven-plugin releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              javafx-maven-plugin saves you 550 person hours of effort in developing the same functionality from scratch.
              It has 1287 lines of code, 46 functions and 12 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed javafx-maven-plugin and discovered the below as its top functions. This is intended to give you an instant insight into javafx-maven-plugin implemented functionality, and help decide if they suit your requirements.
            • Executes the JLinkExecutor
            • Creates the command line arguments
            • Applies the launcher script to the launcher script
            • Checks to see if the JLink is newer version
            • Creates a zip archive from an image
            • Execute the mojo
            • Creates the command arguments
            • Splits a comma - separated string into a list of arguments
            • Creates the add modules string
            • Split a complex argument string into a list of Strings
            Get all kandi verified functions for this library.

            javafx-maven-plugin Key Features

            No Key Features are available at this moment for javafx-maven-plugin.

            javafx-maven-plugin Examples and Code Snippets

            No Code Snippets are available at this moment for javafx-maven-plugin.

            Community Discussions

            QUESTION

            Cannot resolve symbol 'WebView'. JavaFX WebView with Maven in IntelliJ IDEA
            Asked 2022-Apr-08 at 16:50

            The thing is simple. I want to create a javafx project with WevView support.
            Here are the steps i followed:

            • Open intellij, create new project, select javafx on the left side, and also select maven on the right side, finish.
            • I added a javafx web dependency in pom.xml
            ...

            ANSWER

            Answered 2022-Apr-08 at 15:26

            Add the line requires javafx.web; to your module-info.java.

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

            QUESTION

            Intellij 2021.3.2, JavaFX Maven project not resolving dependencies correctly
            Asked 2022-Mar-21 at 17:21

            I added a library to my JavaFX projects following these steps:

            1. File --> Project Structure --> Project Settings --> Libraries --> + --> Maven
            2. Insert the Maven coordinates and checked the "Download to projectPath/libs"
            3. In pom.xml added the correct dependecy declaration
            4. In module-info.java added the 'requires module'

            Importing the library to my class seems to work, but after calling a method from the library, it results in a

            ...

            ANSWER

            Answered 2022-Mar-21 at 17:21

            From the comments, you seem to be using some less common libraries. Sometimes, those kinds of libraries are not updated to be compatible with the Java Platform Module System. I think it is probably safe to assume that unless you know otherwise.

            Defining a non-modular project

            The easiest way to deal with such dependencies is to make your project non-modular: delete the module-info.java.

            But JavaFX itself is only supported as modules. So, even though your project and its dependencies are non-modular, you should still place the JavaFX libraries on the module path.

            Using a JDK which includes JavaFX

            To accomplish such a setup (non-modular application using JavaFX modules), the easiest way is to rely on a JDK or JRE that includes JavaFX modules, for example, the Zulu JDK FX distribution or the Liberica Full JDK distribution. It is important to use the correct distribution as the base JDK distributions for Zulu and Liberica do not include JavaFX.

            Using a base JDK which does not include JavaFX

            With a bit more work, you can use OpenJDK. You can do this by sourcing the JavaFX modules from either the maven repository with a build tool, or a manual download of the modules and SDK from Gluon. In all your build and execution steps, you need to ensure that all of those modules are on the module path and declared to the module system via either VM arguments or a module-info.java.

            Building with Maven

            For a Maven build, you need to add each module to the module path individually, as they are all in separate directories in the local .m2 repository (modern Maven systems and some IDEs, such as Idea, will do that automatically, other IDEs such as VSCode may not).

            Building with the SDK

            Alternately, don't add dependencies on the JavaFX modules via Maven. Instead, download the JavaFX SDK and add the JavaFX modules there via VM arguments --module-path and --add-modules. This process for adding JavaFX modules to OpenJDK is documented in the getting started documentation at openjfx.io.

            A note on openjfx.io Maven archetypes

            Note that the openjfx.io getting started documentation around this mentions maven archetypes. My advice is not to use those as they are really difficult to work with if you try to use them from IDEs. Instead, use the Idea new JavaFX project wizard, either keeping the module-info.java it generates for a modular project or removing it and manually specifying JavaFX module VM arguments for a non-modular project.

            Issues with your project build

            In terms of your actual project, I encountered the same error that duffymo pointed out in the comments:

            I can't resolve all the dependencies for web3jm-evm from Maven Central. It's pulling in a bunch of JARs from org.hyperledger.besu that aren't in Maven Central.

            So I was unable to build or test it.

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

            QUESTION

            JavaFX MediaPlayer import
            Asked 2022-Mar-14 at 10:43

            I have a issue, not being able to import MediaPlayer in my JavaFX project. I am using IntelliJ with a Maven build, JDK 17 .. I updated the Maven dependencies and I have the JavaFX plugin installed, and it is still not working.. Thanks in advance for any answer/suggestion

            ...

            ANSWER

            Answered 2022-Mar-14 at 10:43

            If you define a module-info.java file and you want to use the javafx.media module, you need to require that module in your module-info (as suggested by kleopatra in comments).

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

            QUESTION

            Can not run JAVAFX .jar File (many errors occurred)
            Asked 2022-Mar-01 at 09:46

            I am having a problem creating a .jar file for my JAVAFX Program.

            important info:

            JAVAFX Version: 17

            JAVA Version: 17

            IDE: Intellij

            Project Uses Maven

            ..................................................................................................................................................................................................................................................

            file structure:

            module File:

            ...

            ANSWER

            Answered 2022-Feb-15 at 20:21

            Try to create a new Class with a main method that calls the main Method of your Application class and use it as entry point.

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

            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

            Error: Module java.base not found, required by while trying jlink on Fedora
            Asked 2022-Jan-19 at 00:33

            When trying to use jlink on Fedora from this plugin https://github.com/openjfx/javafx-maven-plugin

            ...

            ANSWER

            Answered 2022-Jan-19 at 00:24

            I am missing the jmods directory in my jdk. On Fedora jmods are a separate install https://fedora.pkgs.org/35/fedora-x86_64/java-11-openjdk-jmods-11.0.12.0.7-4.fc35.x86_64.rpm.html

            Run sudo dnf install java-11-openjdk-jmods

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

            QUESTION

            How to convert JavaFX project to Maven correctly?
            Asked 2022-Jan-13 at 20:54

            I wrote JavaFx project in Eclipse IDE, it worked correctly.

            Once I converted it into Maven project, my FMXL files stopped opening. However, if I create new FXML files and put them in the same folders, everything works.

            Is there any way to run my Maven project without recreating all my FXML files?

            I've already tried changing paths to my FXML files in code, moving FXMLs to src/main/resources package or simply copying the code from old FXMLs to the new ones, but nothing worked.

            All FXMLs I created in SceneBuilder and haven't changed the version of this program throughout the process.

            I'm loading my FXMLs using the following method:

            ...

            ANSWER

            Answered 2022-Jan-13 at 20:54

            This is unrelated to Maven, it is an access error caused by incorrect configuration of the Java module system for your application.

            The error message tells you what is wrong:

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

            QUESTION

            java.lang.UnsatisfiedLinkError: URI scheme is not "file" with javafx:jlink
            Asked 2022-Jan-12 at 09:47

            Hello i am using jnativehook library with javafx running with mvn javafx:run works fine but with mvn javafx:jlink fails to start with a launcher, here is javafx plugin xml,

            ...

            ANSWER

            Answered 2022-Jan-12 at 09:47

            Caution

            JavaFX has keyboard handling in-built.

            Absolutely do not do this unless you need some capability not built into JavaFX.

            That said . . . if you really need to do this . . .

            I got this to work via the following steps:

            1. Created a new JavaFX project via the Idea New JavaFX project wizard.

            2. Added a dependency to JNativeHook 2.2-SNAPSHOT.

              • Snapshot was required because 2.2.1 release module-info would not work for me.

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

            QUESTION

            Error when trying to make a fat jar with maven in JavaFX on Intellij
            Asked 2022-Jan-02 at 17:57

            I have been trying to create a jar with maven and the maven-shade-plugin for my JavaFX project following this tutorial. https://www.youtube.com/watch?v=EyYb0GmtEX4.

            I can create the jar file but when I run it, it gives me the error: Error: Could not find or load main class com.example.pleasework.com.example.pleasework.Main_1

            Caused by: java.lang.ClassNotFoundException: com.example.pleasework.com.example.pleasework.Main_1

            I have already tried adding java --module-path /path/to/java-fx-libs/ --add-modules javafx.controls,javafx.fxml MyMainClass to vm options but it just changes the error to Error: Could not find or load main class Java. Also, I have a second Main file that runs my first Main file which extends Application.

            I am using IntelliJ and created my project through IntelliJ's built-in JavaFX project with Maven. I can run my project normally and it works fine, but when I try to run the shaded jar I generated through Maven's shade plugin I get these errors.

            Here is my project structure:

            Here is my 2nd Main file

            ...

            ANSWER

            Answered 2022-Jan-02 at 17:57

            The error message indicates that you have to specify the main class without module name. Just use the fully qualified class name there. A fully qualified never contains a slash as it is not a path name. So in your case the fully qualified class name is including the XML tags around (the main class is used two times in your pom.xml and have to be corrected in both cases):

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

            QUESTION

            Warning with javafx-maven-plugin version >= 0.0.5: "Module name not found in . Module name will be assumed from module-info.java"
            Asked 2021-Dec-27 at 19:27

            While updating JavaFX projects to version 17.0.1, a new warning message is being issued by any version of the javafx-maven-plugin with a version number of 0.0.5 or greater.

            The warning message is:

            ...

            ANSWER

            Answered 2021-Dec-27 at 19:27

            I recently encountered the same problem here:

            When executing the command mvn javafx:run, the javafx-maven-plugin produces the following: [WARNING] Module name not found in . Module name will be assumed from module-info.java. The mainClass configuration attribute is the "fully qualified name, with or without module name." While the warning can be safely ignored, adding the module name eliminates the warning:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install javafx-maven-plugin

            The plugin is available via Maven Central. In case you want to build and install the latest snapshot, you can clone the project, set JDK 11 and run.

            Support

            Issues can be reported to the Issue tracker. Contributions can be submitted via Pull requests, providing you have signed the Gluon Individual Contributor License Agreement (CLA).
            Find more information at:

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

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/openjfx/javafx-maven-plugin.git

          • CLI

            gh repo clone openjfx/javafx-maven-plugin

          • sshUrl

            git@github.com:openjfx/javafx-maven-plugin.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