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.

24

u/[deleted] Jun 12 '20

[removed] — view removed comment

4

u/TryingT0Wr1t3 Jun 12 '20

Java is not the GUI toolkit. If it looks clunky you are using a bad GUI toolkit. You could use jni to link Java with any toolkit.

10

u/GloWondub Jun 12 '20

Qt has themes that are supposed to integrate correctly into the os. It works in general.

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.

5

u/Zanshi Jun 12 '20

It really depends on what theme you're using. I had really good results with Numix applied through lxappearance, and using qt apps with with the other settings manager (not the KDE one, forgot the name)

1

u/jess-sch Jun 12 '20

Numix has both a GTK and a Qt theme, which are made to look as close as possible to each other. That's why it works. It wouldn't work if your theme wasn't explicitly made for both.

3

u/Zanshi Jun 12 '20

Yes, that's why I said it depends on the theme, at least on GTK based desktops

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.

1

u/Alexmitter Jun 12 '20

Not at all under the family of standard Linux desktops aka GTK based desktops. Qt Apps do not integrate at all.