r/linuxquestions • • Jun 12 '20

Resolved Why does everyone hate Java applications?

I see it generally everywhere I go as a Linux user: almost everyone has some kind of problem with Java applications. I understand Java as a development platform has some rather infuriating holes regarding its deployment methods, and the most common issue I've seen are memory leaks and just how memory hungry the applications can be by themselves.

Is it a concept of purity? Or is is just because of some other reason that seems to escape me? I use some Java applications almost daily without problems. So why the grudge?

Opinions, rather than absolute answers, are expected.

Resolved -- Technically, there have been several wonderful and informative answers here on this post. Some answer the question better than others. However, not one singular answer is fitting enough to answer this question, so I thank everyone who took the time out of their day to enlighten me about Java and its rather unfortunate history. Thanks again!

128 Upvotes

137 comments sorted by

View all comments

159

u/edman007 Jun 12 '20

Java has it's good points (it runs everywhere), but the flip side is it feels clunky. Standard Java apps don't use any OS specific things. That means it doesn't accept your GTK themes, your KDE themes, it doesn't integrate well with any system service.

I think Java just feels clunky, and it's largely because if you want an app that runs everywhere then it nessicarely can't integrate with anything, it can't be optimized to any system, and it needs to follow its own rules so it doesn't work well with any OS.

Now it doesn't have to be, I've see Java apps that use the native libraries, but they were not cross platform.

27

u/PunctualEmoticon Jun 12 '20

it's largely because if you want an app that runs everywhere then it nessicarely can't integrate with anything

Don't Qt apps do this well? I don't have any experience with Qt development, but I was under the impression it visually blended in very well.

7

u/jess-sch Jun 12 '20

Don't Qt apps do this well?

On Windows and Qt-based desktops (e.g. KDE)? Yes. On GTK-based desktops (e.g. GNOME) and macOS? No.

0

u/gmes78 Jun 12 '20

On badly configured GTK-based desktops (e.g. GNOME) and macOS? No.

FTFY

1

u/jess-sch Jun 12 '20

It's not just badly configured ones. Not every GTK theme has a Qt alternative, and even if they do, they may not be that good.

Interestingly enough, there's no good Qt alternative to Adwaita, the official GTK theme, which I happen to like a lot.

1

u/gmes78 Jun 12 '20

Is adwaita-qt not good enough?

1

u/jess-sch Jun 12 '20

It certainly doesn't look quite right, and I've had a ton of issues with the dark theme in some applications.

1

u/gmes78 Jun 12 '20

Hmm. I usually use Arc (which has a good Kvantum theme) or Breeze (which has a proper GTK theme) so I don't run into issues often.

Edit: you can also try QGtkStyle or QGnomePlatform, see if those work better.