r/java • • Aug 24 '26

Usage of Java in non-web development domains, and Greenfield projects.

Greetings.

(I will beat around the bush a bit before getting to the point, you can scroll down a bit to save time)

Java currently shines at enterprise backend applications, being led by the big players like Spring and Quarkus. However Java seems more than capable for other domains, yet no one talks about it, or even considers Java for normal non-web projects.

Take desktop development for example. JavaFX is one of the BEST GUI frameworks I have ever used. It is feature packed, doesn't require cryptic symbols, no fancy way of nesting code blocks to create simple UI. It is very simple to use, yet powerful and robust.

Game Development is a bit weak, but we still have libGDX and LWJGL. They are packed with features, even 3D. Contrary to popular belief that libGDX is a 2D only framework, libGDX has some great 3D support like GLTF rendering, bullet physics, PBR rendering and skeletal animations.

Big data processing and simulation systems, Java's OOP nature really helps to solve certain problem statement that requires the problem to be broken down into multiple pieces.

And finally web development, there is no doubt Java has one of the best ecosystems for the web.

And yet despite all this, Even as modern Java has come a long way, Java continues to have a negative reputation of being slow, boilerplate, RAM consuming memory hog. (The same people will use electron to make a desktop app btw) and as a result not considered for newer projects.

When I look at other communities like JavaScript, Rust, python, C#, Zig. These languages are often considered first options for any Greenfield projects. The open source communities in these languages are very active, you will see some amazing work being put out by the community.

Java seems to lack that "community" nowadays. I am active in a lot of subreddits and forums, and I see very less of Java projects in the wild. Java is being used in production out there, but modern greenfield projects are leaning more towards Go and C#.

So getting to the point of the post

Is Java seeing a decline? This is not a "Java dead" post but a genuine concern. The community for Java just seems.... dull. And I was wondering what could be done about this. Amongst new and modern programmers, Java and C++ seem to be considered "old", "dead" and "traditional"

Perhaps project Valhalla could help, but I wonder how much would it help restore Java's PR. Oracle is definetly NOT helping with this.

Why does this matter in the first place?

You may think "it doesn't matter what others think, companies still want Java" and while it holds some truth, more and more of Open source development seems to be moving towards other languages. A lot of Java libraries and frameworks have seen some decline, the community seems to be becoming more inactive. Other programming languages and frameworks have active discord servers, forums, documentation, and participation while Java seems a bit slow there.

I dont know, I really love Java as a language. And I wish it had more adoption in non-enterprise domains. I would genuinely like to know, what we as a community can do to make Java more "loved" and preferred

91 Upvotes

130 comments sorted by

View all comments

Show parent comment

9

u/RandomName8 Aug 25 '26

For desktop apps for machines with 32GB of ram, where you can only open like 4 apps at the same time... This isn't solely a java problem, but it annoys me that I used to use java on a 128MB of ram a long time ago, "ide" and all, and now it's impossible to get a graphical hello world in less than ~50MB after passing a big launch arguments soup.

13

u/hippydipster Aug 25 '26

I make java apps that live in a couple hundred MBs without issue. And I make apps that use many GBs because they have huge in-memory databases. Your complaint here seems like a big exaggeration.

-4

u/RandomName8 Aug 25 '26

Yet you don't try to refute it, just dismiss as "not my problem". By the way, "a few hundred MBs", 12 is a few. Saying "a few" makes it sound like not much without actually providing any value nor necessarily being untrue, very witty.

Your remark on not taking much space here seems like downplaying it.

6

u/hippydipster Aug 25 '26

Huh. Are you reading reddit from a different universe or something?

-1

u/RandomName8 Aug 26 '26

Oh? I was not informed nor I saw in the rules which "planet" was the right one. My apologies.

2

u/jonathancast Aug 26 '26

12 is not "a few", especially not in the context of hundreds, lol. Also, I assume either the person you're replying to stealth-edited their post, or you're bad at reading, because the post I read that you replied to said "a couple" not "a few".

1

u/RandomName8 Aug 26 '26

because the post I read that you replied to said "a couple" not "a few"

indeed so.

3

u/VincentxH Aug 26 '26

Skill issue

2

u/[deleted] Aug 25 '26

[removed] — view removed comment

0

u/[deleted] Aug 30 '26

[deleted] — view deleted comment

1

u/gufranthakur Aug 31 '26

please tell me how, mine take quite the ram (macOS)

1

u/RandomName8 Aug 31 '26

I imagine you're talking about heap usage and not the entire jvm process RSS.

1

u/gufranthakur Sep 01 '26

I am talking about what the Activity monitor shows (it's what the users will see) and since I am on a 4k hiDPI display, its quite high (around 300MB, 900MB at fullscreen)

turning off HiDPI via JVM arguements significantly reduces RAM but ofc everything looks very blurry and chopped

1

u/RandomName8 Sep 01 '26

I believe you might have replied to the wrong post (?).