Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!

Join

java-help

❓︱qotw-answers

Memory leak

Hello, I'm making a java project (minecraft plugin) and having some issues with memory leak, is there a specific tool or something to to check memory leaking from where it comes for free ?

lombok

how to use lombok in intellij community eddition 2025 i am using web and lombok dependencies but lombok one producing error everytime if i comment out lombok dependency it works smoothly attached pom.xml also...

I'm having trouble setting up javafx

I keep getting this error message "Error: JavaFX runtime components are missing, and are required to run this application"

Phpstorm problem

I cannot use OCI, I've tried it a lot of times, but still no succeed. Can I get some advices please?
No description

java loop question

I need help with my looping. My target is that after the current ‘row’ is used, i’ll go back from the top and use another ‘row’ https://stackoverflow.com/q/79579567/10353761...

Scanner not blocking inside virtual thread

Exactly what the title says. Code: ```java...

Java While Loop Question

I am struggling with understanding what I am doing wrong when I answer this homework/quiz question. I am supposed to create a while loop that continuously prompts the user for int values until the user inputs a negative value. After the loop terminates, the program will display the largest value entered by the user. The area I am struggling with is using the if/else if statements to correctly put the larger number in the variable named largest. I have spent hours trying to figure out what I am doing wrong, and would greatly appreciate any insight....
No description

Proper Exception Handling: Try-Catch Blocks with Loops in Cryptographic Hash Collision Program

Hello everyone! I'm working on a cryptographic hashing project where I need to find hash collisions for multiple messages. I'm a bit confused about the proper way to structure my try-catch blocks with loops. Here's my situation: I have an array of messages that I need to process:...

azure backend deployment HTTP Error 503. The service is unavailable.

Hello, ive deployed me backend and database in azure and the backend is sucessfully deployed but when i try to hit an endpoint such as /health or anyother endpoint i get this. Anyone know why?...
No description

LUT get index from .txt file

Hello, beginner here. In class we're currently working with OpenCV for image manipulation. We're asked to create a LookUpTable as a .txt file and and change the color of some pixels in an image. the .txt file is something like this: ```...

Streaming

How can I stream audio in spring mvc, like spotify?

sizing problem

im looking to size up my output based of user input but when user input size is greater then 4 then the spacing is all off

Lombok Issue

Im trying to use lombok in my anticheat project but its not working i took over 4 hours me and my friend trying to fix it rebuilding, cleaning. And it just doesnt want to work, any help?

Please tell me more about constructors that use a try-finally block in them?

What is a use case for this being in a constructor? What is the problem with using “finally” to handle exceptions in constructors?...

help making minecraft clone in lwjgl

can anyone help me create a small game in lwjgl like old minecraft rd?. never used lwjgl before, just want to create a small voxel game with breaking and placing, already made a texture atlas for it. dm me if u want to help

Lombok @Data annotation problem

I have this DTO:``` @Data @Builder public class UserDto { private Long id; private String firstName;...

set package to classes generated with antlr4

i made a simple grammar that is parsed correctly, however i had to move my main to the generated classes folder since the generated java files have no package. How can i set their package to be the same as the main? Im using maven btw. ```xml <dependencies> <dependency> <groupId>org.antlr</groupId>...
No description

I want to do a java backend project

I want to do a java backend project How to get people to work with me like it's a stock market simulator based on real time data from indian stock market Any way that I get online friends to help me with the day to day development...

Uploading a large file using a HttpClient

I'm using Methanol (an extension over the standard HttpClient) to upload a large file to a server. When I track the file upload progress is appears to buffer 2GB at a time. This causes OOM errors unless I increase the memory allocation pool for the JVM which is undesirable. I've looked through all the documentation and all mentions of internal buffers have the default around 16KB which is much smaller than what I am seeing....