r/java Oct 08 '20

[PSA]/r/java is not for programming help, learning questions, or installing Java questions

318 Upvotes

/r/java is not for programming help or learning Java

  • Programming related questions do not belong here. They belong in /r/javahelp.
  • Learning related questions belong in /r/learnjava

Such posts will be removed.

To the community willing to help:

Instead of immediately jumping in and helping, please direct the poster to the appropriate subreddit and report the post.


r/java 15h ago

Thymeleaf or jte

24 Upvotes

Hello do you recommend thymeleaf or jte ? And why ? Thnks


r/java 1d ago

James Gosling on Java - Historical Oddities & Persistent Itches #JVMLS

Thumbnail youtu.be
65 Upvotes

r/java 1d ago

Methanol 1.8.0 - distributed & multi-level [redis] caching, better object mapping & more

Thumbnail mizosoft.github.io
23 Upvotes

r/java 1d ago

Looking for Azul JVM Profiler/Observability Recommendations

5 Upvotes

I've been using YourKit for observing / profiling Hotspot JVMs and have been very happy with it. However, it doesn't support Azul JVM (at least not the paid one). What tools do you recommend for profiling and monitoring Azul JVMs?

I've used VisualVM but it seemed much worse than YourKit - e.g. not working for things like memory retained size etc.


r/java 2d ago

Exploring Java's Units of Measurement API (JSR 385)

Thumbnail belief-driven-design.com
79 Upvotes

r/java 1d ago

Run MCP Servers On Android with Gemini & Chicory

Thumbnail docs.mcp.run
5 Upvotes

r/java 2d ago

How to use SDL3 from Java

Thumbnail mccue.dev
30 Upvotes

r/java 2d ago

Building in public Java API for Software Defines Radio

Thumbnail github.com
27 Upvotes

Hello all,

First off Merry Christmas 🎄 I am building in public jSDR to allow developers to build Software Defines Radios using Java. My project is partially functional but wanted to get your feedback the earliest on whatever comes to your mind like method signatures or anything else.

Thank you very much!


r/java 3d ago

What should be the plans for specialized methods in stream and collections API once Valhalla comes out?

38 Upvotes

As you already know, java SE apis are and other third party libraries that are "supper sets" of the standard collections API are bloated with specialized methods to deal with primitives in order to gain the performance edge.

Classes such as IntStream, mapToInt, mapToDouble, boxed, etc. Are needed in order to work with raw primitives, allowing boxing and unboxing at demand.

The main drawback of this is it turn what should be simple and convenient APIs for dealing with data structures more complex, adding a mental overhead to students and people that come from other languages such as python, JavaScript, kotlin and so on.

Once Valhalla comes out the rip between primitives and wrapper classes will start to converge to the point where an Integer! Could be perfectly replaced by int and viceversa, making all of these specialized APIs redundant and even harmful (because they would make bigger and more complex for ni benefits

Do you think these should be ever deprecated (not necessarily for removal) or it's less harming for these methods to be there, even if, eventually, they will ad no real value?


r/java 5d ago

JDK's repository summary

Thumbnail i.redd.it
126 Upvotes

r/java 5d ago

ABC: Learning The Alphabet with Java Annotations

Thumbnail serce.me
30 Upvotes

r/java 5d ago

Photohaul: Effortlessly manage your photos!

33 Upvotes

Fellow photographers - and Java gurus - are you tired of manually organizing and migrating your massive photo library?

Introducing Photohaul, a powerful tool that helps you:

  • Reorganize 10K+ photos (30 GB) in seconds!
  • Migrate photos locally and to the cloud (Dropbox, Google Drive)
  • Customize folder structures based on date, camera, and more
  • Filter photos by file type, size, and other criteria

Say goodbye to photo clutter! 👋 + 🚀

Try it out on GitHub: https://github.com/huangsam/photohaul

I'd love to hear your feedback and suggestions!


r/java 5d ago

Creating a Custom ByteBuddy Weaving Plugin with Gradle: A Step-by-Step Guide

Thumbnail codecraftsphere.substack.com
9 Upvotes

r/java 5d ago

JDK images with Ubuntu Chisel

Thumbnail github.com
4 Upvotes

r/java 6d ago

Logging, the sensible defaults

Thumbnail gerlacdt.github.io
29 Upvotes

r/java 6d ago

LangChain4j 1.0.0-alpha1 released

46 Upvotes

The goal of LangChain4j is to simplify integrating LLMs into Java applications. Please find more info on LangChain4j here.

Some of the highlights of this release:

  1. Preparing to release the stable 1.0.0 version in Q1 2025
  2. New chat model API
  3. Support for MCP (Model Context Protocol) from Anthropic
  4. Ollama: Support for structured outputs and tools in streaming mode
  5. Azure OpenAI: Support for structured outputs
  6. And much more!

Please see all the details in the release notes.


r/java 6d ago

Navigate Early Development | Simplify Data Storage

Thumbnail medium.com
3 Upvotes

r/java 7d ago

Are virtual threads making reactive programming obsolete?

Thumbnail scriptkiddy.pro
135 Upvotes

r/java 7d ago

And native code that needs a JNI wrapper?

12 Upvotes

I have some experience with JNI, currently am using it for a fairly complex adaptor at work. But I am looking for something fairly simple and could use some ideas.

My daughter is a CS student and would like to start creating things for her Github. She knows both Java and C++ so thought it might be a fun little project for us to do together. At least it would be something different. Maybe I should consider JEP also, I have never used it.


r/java 7d ago

Just wrote a simple Cobol Mapper

52 Upvotes

I needed a simple way to convert Cobol positional strings to DTOs and I literally found nothing apart from an application from IBM, which is quite complex to setup and even harder to make it work. I also didn't want to provide the Copy Cobol or anything, I wanted to do it more like we map XML or JSON files nowadays.

So I decided to write one myself and it was so fun, expecially because it was the first time I was working with reflection and custom annotations, so I learned a lot too.

I hope some of you can find a use for it and if you want to sugget how to improve it, absolutely go ahead! I'm always eager to improve my coding skills! So here's the link to the GitHub repo.

EDIT: as per suggestion I added the withDelimiterSize() method.
EDIT2: as per suggestion I improved the annotation parameters for an easier configuration;


r/java 9d ago

WildFly 2024 recap

Thumbnail wildfly.org
23 Upvotes

r/java 10d ago

What's Brewing in JDK 24

Thumbnail unlogged.io
92 Upvotes

r/java 10d ago

Straightforward Data Access with Jakarta Data

Thumbnail medium.com
31 Upvotes

r/java 10d ago

Java in the Small

Thumbnail horstmann.com
100 Upvotes

r/java 9d ago

Is the JVM on the Path to Obsolescence? Will GraalVM Take Its Place?

0 Upvotes

So, the JVM was created to solve the platform-dependency problem, but over time, it introduced its own problems. Then came GraalVM as the potential savior. Does this mean the JVM has lost its purpose? Has the mantra of 'Write Once, Run Anywhere' (WORA) lost its relevance?