Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

Join the community to ask questions about Java Community | Help. Code. Learn. and get answers from other members.

Join

java-help

❓︱qotw-answers

Issue: API Returning Empty JSON Objects {}

facing an issue in my Spring Boot project. My API for fetching products is returning empty objects: [{}, {}, {}, {}] But I have verified that data exists in my H2 database.

Looking for guidance and help.

Hello folks, I am just looking for guidance how to solve this task. I know it's easy, so please consider I am a beginner here. πŸ™‚ 1. Create a program that allows input of student data. For each student, the following information is known: name and surname, index number, and a list of subjects. For each student in specialist studies, the same data as for a regular student should be known (implemented using inheritance), along with the name of the specialization. The maximum number of subjects for regular studies is 30, and for specialist studies is 10. Enable the display of all data for both types of students....

Game exited code 1

Hi how can i fix game exited with code 1 this happened afternoon I couldn't know how to fix thisπŸ₯²
No description

I am finding client

I am senior fullstack develoepr I can develop perfect all porject...

Connection problem keycloak - java app within docker

Hi there, I am having some problems trying to connect my keycloak - java app using docker, first I face the problem of having referenced in my properties the keycloak container (http keycloak:8080/auth) and my browser was not able to resolve that URI, that was fixed using KEYCLOAK_FRONTEND_URL to change the requests to localhost:8012/auth, however now I am facing the problem to trying to log out from my app , I try the option backchannel logout url setting it to keycloak:8080 but still not work...

Searching DB registers by other field instead PK using JPA

I have a project using JPA without any framework. I want to search registers by others fields like 'username', 'password' instead the primary key. I need to use SQL with JPA to it? ``` public User findUser(Long id) {...

Mendelian genetics in Forge 1.20.1

I need to create a framework called GeneticMob as a mixin to Animal.class in Forge 1.20.1. I then want to create mixins for individual animals that extend GeneticMob. An example would be PigMixin that extends GeneticMob. GeneticMob should provide common methods like getMainGene, getHiddenGene, etc. But these classes rely on enums called Gene that are specific to each animal. Is there a way for me to tell GeneticMob that there will be an enum called Gene so the compiler will let me work with it before its created? My overall idea is to create a system that lets me easily give other mobs mendelian genetics like the Panda has. If there is a better way of doing this I'm all ears....

Java newbie (1 year). Im trying to write a chat app in java..

Im using JPQL and PostgreSQL. Im having problems with the mapping, it worked okay before, but after i used copilot on it, it broke... Could anyone help me please? code: https://github.com/h679172/chatapp.git Thank you...

Java/Processing PacMan

I'm making my own pacman for a class project, but I can't get the enemies to follow the player correctly

Hexagonal architecture question

Hi, I have a question on hexagonal architecture here. Does anyone know what it should be? https://stackoverflow.com/questions/79542731/hexagonal-architecture-question-with-respect-to-ports...

im making a minecraft Plugin for paper, but i need help actually... you know, making it

im a server owner and content creator for minecraft and completely clueless when it comes to coding, so im hoping anyone from the code scene can help me make the plugin, the plugin runs off of the idea of classes, example of one class: the meleeist; 2 abilities, ability names: seismic slam, beserker charge, if this sounds interesting to you, message me so i can invite you to the discord and we can discuss the plugin in DMS, (u join the smp discord so i can give you publicity because im broke asf...

Starting with profiling. any good suggestions for books

I am trying to understand software profiling from a theoretical perspective. Any suggestions for books/articles/video lectures are appreciated.

Stack Interface, Deque Implementation: Worth it?

First time poster here, so please be lenient :) I have learned that the Stack class in Java inherits Vector class, which breaks LIFO contract. I also learned that Deque (a double-ended queue, seems contradictory) does not strictly maintain LIFO contract and is not thread-safe as far as I know (though this can be solved with ConcurrentLinkedDeque). Anyway, I have found a solution being:...

Resources for java profiling

I am trying to understand software profiling out of interest. Wanted to read about it some more but the resources I found only focus on the tools used for it. I wanted to understand it through a book/video[not focusing the tool itself but the concept of software profiling]. I will really appreciate any suggestions regarding this.

Using Eclipse for Processing 4

Hi... I've been coding in Processing 4 lately, and would like to move up to a better IDE. I've looked online for resources, and while there appear to be lots, it turns out they're mostly for Proclipse, a discontinued Google Code project from over 10 years ago, or just old enough not to apply to Processing 4: the newest one I've encountered was a YouTube video from 2022, that used Processing 3, and JRE 8; Processing 4 uses Java SE 17, and while I tried to adapt the how-to vid to mine modern environment. This is the vid I followed, except selecting Java 17 instead of 8....
No description

Streaming jar in

Hey! so my minecraft mod has a loader as its a private mod. it recieves the b64 buffer of the jar file, then starts loading the classes. the thing is though it has errors for the minecraft classes, like: Caused by: java.lang.ClassNotFoundException: net.minecraft.class_2382 Any help would be appreciated!...

What is the best way to transfur a java project from intellij to eclipse?

I've been trying to get my java project on eclipse from intellij since its free but I've been having issues where the frontend is not recognizing the backend which is throwing errors. I am very new to java but have been having many difficulties.

JWT & Spring Boot

Hello, I develop a website and I have some questions for the connexion with users. For the back-end, I use Spring Boot and I have this function : ```java @PostMapping("/login") public ResponseEntity<?> loginUser(@RequestBody User user) {...

code

hello basically I have encrypted files in java can I do something with them. somehow decrypt them
No description
Next