Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

With more than 25,000 members, join one of the biggest and most active Java Communities on Discord! ☕

Join

java-help

❓︱qotw-answers

help for javascript (code.hs) beginner

hey! if anyone can explain this to me as I’ve been struggling thank you!
No description

Rendering too resource-intensive

I am using Swing to render a graph in a window; however rendering is taking too long and is too resource-intensive. What changes can I make to help with performance? Here is the class responsible for rendering my graph: ```java public class GraphPanel extends JPanel { private Graph graph; private PathfindAlgorithm algo;...
No description

Not getting right platform details

I am working to get game presence data via discord but i am not getting right platform details. How to get is any other package or functions or classes in java?

What are some things and language features you use to reduce writing/time spent on boilerplate?

I've been working on a greenfield project lately and noticing how tedious it is to create entities, domain models, request/response objects, dtos, when they're all really just pojos. There are also other things that are redundant/boilerplate like. I'm wondering what new language features, libraries, and other things you add into your coding to reduce time spent on writing boilerplate?...

how to use validation in my controller?

hey guys. im looking for advice on this question. right now i have this: ```java @PostMapping(value = "/myendpoint", produces = "application/json") @ResponseStatus(HttpStatus.CREATED) public ResponseEntity<PaymentDTO> createPaymentInformation(@RequestBody @Valid PaymentDTO paymentInformationRequest){...

API Gateway is not getting registered on Eureka Server

I made a User-Service and Contact-Service and i have registered them on eureka server and the API of User and Contact Services are running perfectly fine but when i am going to register API Gateway on Eureka Server its not getting registered.

A FREE Claude 3.5 AI IDE

Does anyone knows about this tool Trae? I think it is such a good tool with free claude-3.5 . I hope he can support 3.7 as soon as possible.I like cool things, let's discuss! here is the link:https://sourl.cn/9NWN5g...

Best Practice for storing images spring boot

What is the best practice to store file paths in the database and the files in disk or storage service ?

linked lists vs ArrayList vs Arrays

what is the difference between a doubly LinkedList and an ArrayList. and how does that compare with Arrays (the class from java.util.Arrays)

How to have Dynamic Database Switching in Spring Boot While the project is running

Hello this is the git repo of the project : https://github.com/dambear/zynergy-api.git; The main database is declare is in application.properties the other database should be in organization table collumn it will be declared there. ...

How to sign executable jar with jsign or similar

So I have a game I want to share with a user who does not have Java. Im using launch4j to convert my .jar to .exe. I want to get rid of the antivirus warning. I found out I can do this by signing the application. I found out about Jsign for this....

I need help to compile source code of a plugin and make it a functioning .jar

i tried many tutorials with the javac prompt command but i keep failing so imma put the file here and hope someone of you knows how to do this

Sprign Data JDBC doesnt save my Domain

I have these classes: ```public class KarteikarteSet private UUID fachId; private UUID modulFachId;...

How to describe nested struct layout through jdk 22 ffm APIs?

Based on the example like [1]. I am able to access C compatible function. With following code, I am also able to access my custom Rust lib. ``` // JVM side MethodHandle addNumbers = { Linker linker = Linker.nativeLinker();...

__filename is not defined (node.js)

So I was searching for JavaScript variable thats return file name and I found __filename. Problem started when I wanted to use it and it returned an error: ```js PS C:\Users\Admin\Programowanie\Discord.js> node FOFMFFJSC.js file:///C:/Users/Admin/Programowanie/Discord.js/FOFMFFJSC.js:7...

android intents

I probably tried for over 4 hours by now to get intents working. i tried setting breakpoints at my intents handeling which should recieve all calls buts its just not. The NotificationShowcase.java also has some example notifications i tried to use including a function to make one with a intent like normal. as you can see there i tell it to use MainActivity.class but that class is just not receiveing them for whatever reason and i dont understand why. the full code is available here: https://github.com/HacktheTime/HypeNotify...

The import Interface cannot be resolved

The import Interface cannot be resolved IDier cannot be resolved to a type The method ToonDierGegevens() of type Dier must override or implement a supertype method ___ How can i fix this error?...
No description

Want to learn

Hi! I'm a beginner and i want to make a my own info website. Can you tell me what programming requires? I hope you can help!

Help seting up GitHub on Intellij to start pushing project.

Hello, i can't figure out how to setup github on my intellij to push my project to a repository. Every time i enable VCS with Git, i know i have to fetch first then pull, but when i want to pull, there is no branch to pull from and so i cant push to github.

What is wrong with this code?

I need help with my code
Next