r/linuxquestions • u/Gamer115x • 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!
3
u/RealisticAlarm Jun 12 '20 edited Jun 12 '20
The distaste is multi-faceted, (although the guaranteed cross-platform is a plus):
As a sysadmin: Expect a java app to take significantly much more system resources than an equivalent app written in a leaner language. That wireless management suite ran out of memory and crashed again? Why does it need 4GB anyway? Oh, yeah, it's running on Java.. sigh, let's throw a few more GB at it's container and see (I could run 8+ non-java apps with that memory)
As an end-user: Aside from the endless flood of "There's a Java update available!" prompts I remember from my windows days - Java apps just seem slow. mysql workbench: great product. However sometimes the UI just 'lags' after a click or other interaction - fraction of a second, but noticeable. It's better since I switched to a lighter window manager, but it's still slower than a native app (even electron apps like Atom or VSCode seem more responsive). Another case in point: Libre(Open)Office has been migrating from Java codebase to C++. Result: Faster load times, more responsive UI.
As a developer: After fighting for several hours (in a pair programming exercise, no less) to get a fairly simple hello-world(ish) codebase to build and run, and encountering nothing but classpath errors, version incompatibilities, etc - I never came back. (in comparison with, say, go, nodejs, even .net core: very basic example setups, including setting up the dev environment from scratch could be timed in minutes). Learned another few languages since then, yet I shudder at the thought of ever touching Java again. I think the sysadmins deploying/managing my product will thank me for doing it in a different language, anyway (see point #1)
Footnote: There's also the 'oracle factor' to consider, too..