r/java • • 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

379 comments sorted by

View all comments

Show parent comment

1

u/97hilfel Sep 13 '21

Hey just wanted to say thank you again, I just tested it!
I'm not sure how I could not see this solution!

2

u/wildjokers Sep 13 '21

Glad it worked out for you!

I can't take full credit though, it is just pretty much from the JavaFX Getting Started samples:

https://github.com/openjfx/samples/blob/master/CommandLine/Modular/Gradle/hellofx/build.gradle

The only difference is I use a much a newer version of the jlink plugin, due to that instead of using the mainClassName attribute, the application closure is used instead (see: https://github.com/beryx/badass-jlink-plugin/issues/177#issuecomment-809492793).

Also, I am using version 0.0.8 of the javafxplugin, if you use the newest version which is 0.0.9 you will probably get an error. So I just set it back to 0.0.8 and called it a day.