hello-javafx-maven-example | Hello World '' example
kandi X-RAY | hello-javafx-maven-example Summary
kandi X-RAY | hello-javafx-maven-example Summary
this is a simple "hello world" example showing a ready to roll javafx project using the zenjava javafx maven plugin. this can be downloaded and used as a starter template for your own maven javafx projects. the demonstration project includes a single module maven project with example pom and source code. the pom is configured to build both an executable jar, a webstart bundle and a native installer (msi, exe, rpm, dmg) for your platform. to demonstrate some maven practices and benefits, the source code also includes a simple fxml example, style sheets, images, and makes use of some third-party dependencies (such as log4j, migpane layout, and apache
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles the Hello message
- Starts the HelloFX application
hello-javafx-maven-example Key Features
hello-javafx-maven-example Examples and Code Snippets
Community Discussions
Trending Discussions on hello-javafx-maven-example
QUESTION
I found this JavaFx project in GitHub.
I can run the HelloJavaFxAndMavenApp
class which contains the main
method and it works like a charm.
However, when I try to build the project using maven by the following command it does not work:
...ANSWER
Answered 2020-Aug-30 at 08:31mvn exec:java -Dexec.mainClass=com.zenjava.examples.hellojfxmaven.HelloJavaFxAndMavenApp
seems to work just fine when I clone the project, build and run it.
From the error message it looks like you have a redundant mvn
there (i.e., you've run mvn mvn exec:java -Dexec.mainClass=com.zenjava.examples.hellojfxmaven.HelloJavaFxAndMavenApp
. Remove the duplicate mvn
and you should be fine.
One possible cause for this I could think of is if you're not running Maven from the command line, but from some tool/IDE. In this case, the tool itself already calls mvn
and just expects the arguments (i.e., exec:java -Dexec.mainClass=com.zenjava.examples.hellojfxmaven.HelloJavaFxAndMavenApp
).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hello-javafx-maven-example
You can use hello-javafx-maven-example like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the hello-javafx-maven-example component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page