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

Eclipse marketplace: facing this issue when trying to access the marketplace to install plugins

MarketplaceDiscoveryStrategy failed with an error Cannot complete request to https://marketplace.eclipse.org/api/p/search/apachesolr_search/cucumber?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.19: status code: 500, reason phrase: 500 Service unavailable (with message) status code: 500, reason phrase: 500 Service unavailable (with message) status code: 500, reason phrase: 500 Service unavailable (with message) status code: 500, reason phrase: 500 Service unavailable (with message)...

Need help with Hibernate for handling citext datatype

Im using citext type column in database. When I fetch it using JPA methods say findbyname(name), it casts the name to varchar and performs normal text comparison. Citext is used for case insensitive matching hence when I hit query in db, Google=GooGlE returns result, but via JPA it does not. Exactly the below issue. Please help ...

bytecode -> class

What is the process for turning bytecode into a class at runtime

Am I violating Open Closed Principle ?

```public class ShadowBeast extends Actor { private Map<Integer, Behaviour> activityPriorities = new TreeMap<>(); public ShadowBeast() { super("Shadow Beast", 'b', 75); ...

SLF4J crashes jenkins

Hi, I have a project that has several spring boot starter dependencies (v3.4.5) (they in turn have slf4j v1.7.36 as a dependency.) Now i tried to make a jenkins pipeline (with a sonarqube server stage). But the
sonar-maven-plugin:3.9.1.2184
sonar-maven-plugin:3.9.1.2184
fails because an
.atInfo()
.atInfo()
method does not exist (which afaik was added in 2.0 of slf4j)...

Reading gifs

I have a problem with reading the frames of a gif I'd like to get what someone would see after opening and playing a gif file, however I can't figure out how to properly account for transparency and update methods Can anyone help? I'm basically looking for a BufferedImage[] frames(File gifFfile) method...

Need support about this Lombok warning

I was taking practice on springboot and i saw this warning! I was wondering if there's someone could review my code and support me! https://github.com/gabbrenn/springboot
No description

Drag-and-Drop, how to drag the element itself?

Hi, i'm novice at JavaFX and i'm little bit confused. The situation: I have the main HBox container with two VBoxes in it. In the first VBox i have an element, another VBox (Let's say - card element). The question: How can i make this card element between 2 VBoxes (i mean - this element needed to be snaped to the mouse cursor until it's droped)? Example on the screen (not my work, just found the demo)...
No description

I need help understanding a part of recursion for a binary search tree.

Hello I basically need to implement a recursive function for insertion of a binary tree. I already implemented the chunk of insertion function (wether it's largest or smaller than root) but there's an aspect of confusion. ` public void insert(E data) { root = insert(root, data); }...

Polymorphism in OpenAPI & Jackson

I have a Spring-Boot project with an API-Endpoint, that allows the consumer to send an object, where at least one field use polymorphism to be one of multiple data classes. With the help of springdoc-openapi-starter-webmvc-ui it automatically creates a OpenAPI-Config, so that consumers can automatically generate classes in their language. The polymorph is giving me a headache and I just can't figure it out. My goal is to generate a OpenAPI-Config, that will...

minecraft forge 1.12.2 server launch issue

hello, when i try to launch the server with jvm parameters i get the following error: "A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70) at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)...

minecraft forge server 1.12.2 error

hello, been getting the error "Error: Could not create the Java Virtual Machine" any help would be appreciated

Kotlin not being included in fabric project

I used a Template which allows you to seperate your Code from minecraft directly using abstraction and interfaces. This allows supporting multiple versions more easily. I recently started converting Code over to Kotlin. However my Kotlin Code that is in common does not get picked up for my fabric project at compile time. This means that Kotlin classes used will throw classnotfound expceions at runtime. Code: https://github.com/HacktheTime/BingoNet/tree/kotlin-rewrite...
No description

que related to java spring

I was learning java backend spring boot, but I was facing some problem in maven without it I am not able to move forward, Ex: like i got some que to add jsp functionality to add in spring boot application, now which website or resource will tell exactly these 2-3 dependency i need to add. By anyhow I got intuition to add jsp depedency but i need to add other dependency also we need to add like tomcat-jsper and jstl tag dependency now where I will these two information from internet that we need to add these two dependency also? secondly if some resource I got to know that these 2-4 dependency we need to add now I go to maven repository and search those dependency but again there are many version available which one to select how will i know. And may be these depedency version also depends on version which I am using for jdk and spring version. but I am not able to get this information from maven central repo how you figure out these dependencies will work for my current spring or jdk version /help urgent!!!...

Coding road map

Hello, I am new to coding and I am trying to decide on a good roadmap. I been watching bro code's 12hr java course on Youtube and about to finish it. From that video I have learned a lot of the basics and skimmed over data structures like arrays and arraylist. I was thinking after that video to watch his full video on data structures as well as learn springboot to make some a project. If anyone with more experience can let me know if this is a good plan or suggest any other things I should do di...

Chat simulation

Hello, I am working on a Java project and need some help. I want to code a Chat conversation where two people talk to eachother, I want person A to represent the person "playing" the code and Person B to be like a robot answering. I want the Player to have to input any text which then turns into the pre programmed text in the chat box and Person B's text to just appear. So far I have created the chat and made it so that when you type gibberish and press enter the correct text gets displayed, but...

Oracle 19c db installation problem

Hello! I'd like to work on a project in phpstorm. I've realized that I don't have the db installed. Unfortunately, I got this problem. Docker has been uninstalled, I tried everything to fix the problem, but had no success.... any ideas?:)...
No description

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"
Next