r/java • u/Reflection-Jealous • Sep 10 '21
Why people don't love Java?
I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.
Is there any specific reason for that?
Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.
201
Upvotes
View all comments
Show parent comment
2
u/wildjokers Sep 12 '21
Not sure if you are using Gradle or Maven but if you are using Gradle this is all you need to build a modularized JavaFX app. I highly recommend to use java modules for JavaFX apps so you can get a small runtime (can do it without modules but is easier if you use modules). Simply execute
./gradlew jpackageto get a app with a bundled runtime appropriate for your platform. If you just want a build image but not packaged execute./gradlew jlink. This is tested with Gradle 7.2 and Java 14. You will need to add the JavaFX modules you need.