Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!

Join

java-help

❓︱qotw-answers

minecraft mod

i was wondering if its possible to double webhook a code

help me find the mistake

Help! I don't know what the error is :'( I need to create a calculator. Everything seems fine to me, but I can't find the error. I'm a beginner and know absolutely nothing about programming. Please help me....
No description

Suggest some spring boot project

I am a final year student so please suggest some resume worthy projects Tech stack- spring boot...

Spring developer 3 years expereince tech interview

Hello guys, I have a question for you—what do you think? I recently had a technical interview for a mid-level Java Spring developer role. I have around 2 years of experience and currently work in a role where I’ve built solid experience with microservices, message brokers, and related technologies. The interview lasted about an hour, and it started with basic Java questions—SOLID principles, OOP concepts, threads, data structures, streams, functional interfaces, etc. Then they asked Spring-related questions like what is a bean, what is POM, Maven, transactional annotations, and so on....

gradlew

im trying to turn my folder into a jar and my gradle is hard stuck on java 17 while i need java 21

Game crashes continously after some time because of lack of memory

First at all, I'm still a beginner to programming, it would be very nice if someone wanted to help me overcome this bug, but I seeking patience, please. I wanted to try and create a game using LibGDX and I wanted to be crossplatform for both Android and Desktop devices. Also I started looking into networking and I managed to, when the game starts, to choose between to be a host or a client. When host is chosen, a server initializes at port 12345 and starts a new thread which sends data of the players' positions. The thing is it's supossed this to be in a Desktop device and also the device participates into the game as a player, but after more or less 30 seconds from when it started both the game and the IDE (Intellij) crashes and even the computer's screen reboots itself. After some time, a message from the computer appears, warning me that the IDE used to much memory and so. I checked if there's a Thread issue, as for too much threads made or something similar, but I checked and only Threads are active during the program. On the other side, when client is chosen, it attempts to connect to port 12345 and the main screen appears on the phone, but the host's player just doesn't update, it just remains there. It should receive the packet from the server, but it just doesn't update. And no, it doesn't crash or anything else, I've checked it....

Spring Gateway + JWT: 401 on Gateway, 403 on Direct Service (Need Help Debugging)

I'm working on a microservices project using Spring Boot. Gateway (port 5556) Auth Service (port 5557) — issues JWT...

Jwt maven project template

Is there one? I tried adding the dependency in the pom.xml but i couldn't get it to work

How to properly pass the csrf token to the frontend?

I'm planning to migrate my project from thymeleaf to React.js. The problem is that most pages require authentication to access -> need to make a post request to log in -> need to have a csrf token. According to most of the instructions I've found on this topic, I've set CookieCsrfTokenRepositoty.withHttpOnlyFalse() in SecurityConfiguration. When a post request is sent, the js retrieves the csrf token from the cookie, which is initially empty. When the post request reaches the server, the fronten...

flowcharts

Hi, does anyone use flowcharts? We're building a powerful AI-powered tool that will greatly streamline our work. We're about to launch beta. Can anyone help us improve it? And give us feedback? (You'll be rewarded.)

Notification Sound only plays once

I didn't notice this Issue until very recently. In case its important I'm using Graphene Os ...

How to learn

When i want to master spring boot should i do project or should i use youtube tutorial

What secure boot for?

A teacher said secure boot is for “loading an operating system on a USB stick/external device” Is this correct? (I don’t think so)...

how long to become a java dev

i am wondering how long it takes to become an entry level java backend dev (including DSA because it's often ignored) , i know the syntax and i have some basic problem solving skills ) , i would really love it to hear your answers guys, thank you!

Could not create the JVM

Im trying to start minecraft and i get this error message i tried everything i could find online nothing worked can someone help me?
No description

Java CI/CD

Why is there a confusion about the term 'dev environment' because I see examples refer to dev as a local environment (meaning the isolated programmers machine and ide) and I have seen dev or develop as a branch that deploys to a dev server url. In addition to my question does each representation of the application in dev, staging, test all undergo different tests or are treated differently pre push and post push

Coding Interview SDE 1

hey everyone I have SDE 1 interview. Could anybody help me with coding interview mock?...

Command Errors

Hi, I was wondering if I could get some assistance regarding my code. If you could help, that would be wonderful!
No description

Chat Messages - Hex Codes

Hey, I was wondering if there was a way I could implement custom hex codes into my chat messages. If someone could help me, that would be great! Thanks!

Cooldown Error

1) It's showing me this, how should I fix it? 2) How can I make it into seconds, rather then having it into miliseconds?...
No description