Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romanchekashov/jmail
JMail - JavaFX desktop app example build with Maven
https://github.com/romanchekashov/jmail
java java-fx javafx maven openjfx
Last synced: 21 days ago
JSON representation
JMail - JavaFX desktop app example build with Maven
- Host: GitHub
- URL: https://github.com/romanchekashov/jmail
- Owner: romanchekashov
- Created: 2023-10-02T20:23:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T20:40:52.000Z (over 1 year ago)
- Last Synced: 2024-11-19T21:33:09.781Z (3 months ago)
- Topics: java, java-fx, javafx, maven, openjfx
- Language: Java
- Homepage:
- Size: 38.9 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JMail - JavaFX desktop app example build with Maven
## Build & Run
### Run app
```shell
mvn clean javafx:run
```### Create executable jar and run it with script
- [Maven Shade JavaFX runtime components are missing](https://stackoverflow.com/questions/52653836/maven-shade-javafx-runtime-components-are-missing)
```shell
mvn clean install
# chmod +x run-executable-jar.sh
./run-executable-jar.sh
```### Create executables: Win / Linux / Mac
- [JavaFX, JLink and JPackage](https://dev.to/cherrychain/javafx-jlink-and-jpackage-h9)
- [Tree FX](https://gitlab.com/lucaguada/treefx/-/tree/openjdk16-jpackage-win)
- [javafx-maven-plugin](https://github.com/openjfx/javafx-maven-plugin)
- [jpackage-maven-plugin](https://github.com/petr-panteleyev/jpackage-maven-plugin)
```shell
mvn clean compile javafx:jlink jpackage:jpackage
```## Debug
1. Run app in debug mode
```shell
mvn clean javafx:run@debug
```
2. In intellij idea run Remote debug## Resources
### Initial resources
- [YouTube: Building and Deploying Java Client Desktop Applications with JDK 17 and Beyond](https://www.youtube.com/watch?v=jb7m9dL1iSI)
- [src code: jmail javafx app](https://cr.openjdk.org/~prr/javaone/2022/)#### Create JavaFX sample app:
- [Run HelloWorld using Maven](https://openjfx.io/openjfx-docs/maven)
- [javafx-maven-archetypes](https://github.com/openjfx/javafx-maven-archetypes)
```shell
mvn archetype:generate \
-DarchetypeGroupId=org.openjfx \
-DarchetypeArtifactId=javafx-archetype-simple \
-DarchetypeVersion=0.0.6 \
-DgroupId=org.example \
-DartifactId=sample \
-Dversion=1.0.0 \
-Djavafx-version=21
```- [Download JavaFX](https://gluonhq.com/products/javafx/)
- [Maven JavaFX](https://central.sonatype.com/artifact/org.openjfx/javafx)
- [OpenJFX Docs Samples](https://github.com/openjfx/samples/tree/master)
- [intellij idea: how to debug a java:fx maven project?](https://stackoverflow.com/questions/61340702/intellij-idea-how-to-debug-a-javafx-maven-project)