Useful-Things
javafx-template
Useful-Things | javafx-template | |
---|---|---|
11 | 22 | |
74 | 9 | |
- | - | |
2.4 | 4.9 | |
9 months ago | 5 months ago | |
Java | Java | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Useful-Things
-
How do I package javafx jars in my jar so that I can run it without vm arguments ?
Creating fat-jar's for maven/gradle projects each release using automated CI (Like GitHub Actions, or Jenkins)
-
JavaFX runtime components are missing, and are required to run this application. For MacBook Air m2
You can refer to my example demonstrating the fix if you want a visual here: https://github.com/Col-E/Useful-Things/tree/master/tutorials/javafx/maven-setup/src/main/java/org/example
-
Dependency injection frameworks
On the other side, I think you did a really good job illustrating how DI works with this document.
-
IntelliJ JavaFX Template is trash
No, just use a normal Java template for Maven/Gradle and add JavaFX as a dependency. I have examples here: https://github.com/Col-E/Useful-Things/tree/master/tutorials/javafx
-
How do I package my app into a jar file
JavaFX FatJar with Maven
-
Where can I download JavaFX 11 or 17, or how do I get 18 to work on IntelliJ?
Using Maven, declare JavaFX as a dependency
-
Is JafaFX no longer available in eclipse market place? I’m following a JavaFx tutorial from 2020 and it’s showing to search for it in marketplace but all that’s showing up is Gluon
If the steps are confusing, I have a maven empty demo project here: https://github.com/Col-E/Useful-Things/tree/master/tutorials/javafx/maven-setup
-
Java: "write once, run everywhere" vs "build once, run everywhere"
You can make a sorta kinda "Multi-platform" JavaFX jar, but only for one architecture per OS. Their dll/so/dylib path names all conflict which is infuriating.
-
Javafx Problem with creating jar file
I typically roll with a standard fatJar plugin. I made a short guide for somebody before. Is that the direction you were looking for?
-
Using Kotlin as "better syntax" - compatibility pitfalls?
Check the reddit links in this post.
javafx-template
-
WebAssembly Adoption: Is Slow and Steady Winning the Race?
> VMs like Python and Java require huge effort to embed.
As a (backend) Java dev, I couldn't let that stand. And indeed I found out java now offers a tool called jlink with first class support, that will create a system native (e.g. .dmg on my macbook) executable with the JRE embedded. The javafx example project* I found could be downloaded, built and run from its native release all within less than 5 minutes.
Mind you the Hello World example executable is 80mb and takes 6 seconds to start, but I feel like with the garbage we are used to in regards to desktop applications, this totally holds up. I have also read there are simple command line options to reduce the size to about 50mb.
* https://github.com/mjparme/javafx-template
- Making a runnable .jar file issue
- Problems when turning my jar file into an exe using launch4j
- Proper guide to create a .jar file including all JavaFX dependency using maven?
- How do I deploy a java application?
-
JavaFX or Swing for starting out in UI
Saying that though if you for some reason want to use JavaFX here is a JavaFX template project that uses Gradle that is ready to go out of the box. The README has instructions for how to use it with IntelliJ (i.e. clone it, point IntelliJ at it): https://github.com/mjparme/javafx-template
- How do I make my javafx application a jar file and eventually an executable file?
- JavaFX 20 + JDK20 + Gradle + GitHub Actions
- Publish a chess game on a website
- How to create an executable from a JAR?
What are some alternatives?
avaje-inject - Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"
LifeSimRPG - Simple JavaFX Controls based GUI for a Life Simulation game, inspired by classic older titles like Kudos and GameBiz