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

→ More replies (5)

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.

15

u/larrylombardo Jun 12 '20

I think the reason I avoided Java was because it was too common and generalized.

As a budding Linux programmer, every choice was a purity test of my elitism. Everyone else can learn Java, I'll be over here with my lisp and asm and C, m'Linus.

I never did pick up java, but I continued trying every other impractical lang of the week for years. It was the equivalent of telling people I'd never eaten at a McDonalds or been to a Wal-Mart, as if that quality alone set me apart.

I don't regret it, but as a fully formed adult, I no longer feel compelled to mention when the topic comes up, "I don't use Java, btw".

10

u/Atralb Jun 12 '20 edited Jun 12 '20

I avoided Java [···] because it was too common and generalized.

I'll be over here with my [···] C

Lol.

If I may say something about your comment :

The lesson to be reminded of from your experience, is that sometimes it is good to take a bit of perspective and filter the non-relevant arguments of what we do.

"Not doing like everyone else" is a good realization with regards to understanding that there is a variety of ways to accomplish our goals and not only one.

This however must not be perverted into a sacred principle that must be followed religiously.

TLDR;

Don't close off avenues to yourself by only looking at the most popular solution.

Don't close off avenues to yourself by only looking at the non-most popular solutions.

7

u/deong Jun 12 '20

I know Java, but I'd rather just find something else to do if faced with actually using it professionally. Life's too short for AbstractFactoryBuilderVisitorBridgeFacadeDecorators.

→ More replies (1)

12

u/[deleted] Jun 12 '20

Doesn't have to be that way. I feel like IntelliJ for example integrates quite well.

7

u/Gamer115x Jun 12 '20

Isn't IntelliJ just an IDE platform for making Java development a little easier? That's what I see on the Jetbrains website.

I ask the question in relation to the finished application, GUI or CLI. We kind of already know how Java development is already, and that is a topic for another discussion.

9

u/MsRandom1 Jun 12 '20

IntelliJ runs on Java and JavaFX.

19

u/my_name_isnt_clever Jun 12 '20

I'm pretty sure IntelliJ uses Swing because they started it ages ago. But they write all the new code for it in Kotlin.

6

u/MsRandom1 Jun 12 '20

Oh. You're right, I don't know why I thought it used JavaFX at first lol, my bad.

0

u/[deleted] Jun 12 '20

[deleted]

→ More replies (1)

2

u/2cats2hats Jun 12 '20

Their answer is related to OPs question.

7

u/[deleted] Jun 12 '20

That means it doesn't accept your GTK themes

If you set it to use the native L&F then yes it does.

1

u/Atralb Jun 12 '20

L&F

?

3

u/redroom_ Jun 12 '20

"Look & feel", probably.

→ More replies (1)

1

u/[deleted] Jun 12 '20

look and feel

→ More replies (4)