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

ID format issue as UUID String in Spring Boot with MongoDb

I created an example of Spring Boot with MongoDb. I have a problem in getting an entity by id with validation as it throws "must be a valid UUID". Here is the entity shown below ``` @Getter...

Spring Boot Project Manager

I am looking for a Project Manager with expertise in Spring Boot and full-stack development. General Algorithm and Proficiency in English is essential for effective task discussions. If you meet these requirements, please feel free to DM me....

Java jre dont opening

Java jre file dont opening

the java_home environment variable does not point to a working jdk or jre. the jvm found at java_hom

Hello everyone! I encountered a similar error, please tell me how to solve it. I'm using a tool designed to extract gamecube .dat files. I will attach an archive with this tool and some .dat
No description

Improvement of Java classes and code.

I would appreciate some help knowing how to write this code better. Im very new to Java and i have some experience with classes before but as you can see not so much... I also wanna know if The private keywords are necessary in front of every variable. Also would like to know when or when not to use "this."....

Configuring Eclipse to use explode war with Tomcat for debugging

I'm a bit new to the Java world and am trying to configure my local environment for a new job. I was able to load my project into IntelliJ Ultimate (IJU) and am trying to replicate the same configuration but in Eclipse because it seems that the Web module/plugin for IJU is not available for IJ CE. Can anyone or @dan1st | Daniel help me configure my Eclipse for this project? Goal: Able to add breakpoint and/or hot-reload Java codes for debugging and development without having to constantly compile and deploy the war file. Thank you in advance....

server only running on IPv6

my mine minecraft server is only running on IPv6 and i want it to run on IPv4 (tryed using -djava.net.preferIPv4Stack=true it worked for a day and thats it)
No description

"Java Virtual Machine Launcher -A Java Exception has occured" error in Maven .jar file

When I use "java -jar [file name].jar" using cmd it works, but doucle cliking the .jar file give me an error. I use maven assembly plugin, and netbeans > build with dependencies ``` <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>3.7.1</version>...

line numbers arent visible in CodeArea

```java public void createNewTab() { Tab tab = new Tab("Untitled"); // Create a CodeArea (RichTextFX)...
No description

sonarqube for scala

Anyone used sonarqube for Java and Scala project? Entering scoverage.reportPaths like below works:
scoverage.reportPaths=../target/scoverage.xml, ../target/scoverage.xml, etc
scoverage.reportPaths=../target/scoverage.xml, ../target/scoverage.xml, etc
...

CI/CD help Github actions with Gradle

Sorry this isn't exactly Java related, but I'm trying to automate the Junit tests over Github actions. I don't want to push my gradle wrapper to the repository, so I'm following this: https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version I tried adding gradle init and gradle build, but with the same results, the error is basically:
Directory '/home/runner/work/Cat/Cat' does not contain a Gradle build.
...

i need help animating a sprite animation

i honestly dont know where to even start, ive been looking at a lot of youtube videos but they all look complicated and i dont understand what theyre saying. I think i have an idea of making a for loop that changes the pimages but i dont know how to do actually do it. i have the sprites ready i just need a bit of guiding

send message to slack without token

Anyone know how to send a message to slack without token anywhere in the code? Slack token looks like this:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
...

StackoverflowError on Login Request

Hi, i'm struggling [Handler dispatch failed: java.lang.StackOverflowError] with root cause java.lang.StackOverflowError: null...

Version Error

org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: "{"message":"version value should be 2021-05-21 or 2022-01-01 or 2022-09-01 or 2023-08-01 or 2025-01-01 tried all this dates still getting version error.

annotation

Code: @Documented @Constraint(validatedBy = StringContainsValidator.class) @Target({ElementType.PARAMETER, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME)...

PizzaOrder. Java

getting 3 erros on java about missing symbol

Changing font in drawString

I dont know how to chcange font so when i drawString it will draw it in changed font

how do i use automatic module names in vscode?

they appear as a module in the autocomplete, but always say it cant be resolved to a module
No description