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

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"

Phpstorm problem

I cannot use OCI, I've tried it a lot of times, but still no succeed. Can I get some advices please?
No description

java loop question

I need help with my looping. My target is that after the current ‘row’ is used, i’ll go back from the top and use another ‘row’ https://stackoverflow.com/q/79579567/10353761...

Scanner not blocking inside virtual thread

Exactly what the title says. Code: ```java...

Java While Loop Question

I am struggling with understanding what I am doing wrong when I answer this homework/quiz question. I am supposed to create a while loop that continuously prompts the user for int values until the user inputs a negative value. After the loop terminates, the program will display the largest value entered by the user. The area I am struggling with is using the if/else if statements to correctly put the larger number in the variable named largest. I have spent hours trying to figure out what I am doing wrong, and would greatly appreciate any insight....
No description

Proper Exception Handling: Try-Catch Blocks with Loops in Cryptographic Hash Collision Program

Hello everyone! I'm working on a cryptographic hashing project where I need to find hash collisions for multiple messages. I'm a bit confused about the proper way to structure my try-catch blocks with loops. Here's my situation: I have an array of messages that I need to process:...

Hi

I need java method

azure backend deployment HTTP Error 503. The service is unavailable.

Hello, ive deployed me backend and database in azure and the backend is sucessfully deployed but when i try to hit an endpoint such as /health or anyother endpoint i get this. Anyone know why?...
No description

LUT get index from .txt file

Hello, beginner here. In class we're currently working with OpenCV for image manipulation. We're asked to create a LookUpTable as a .txt file and and change the color of some pixels in an image. the .txt file is something like this: ```...

Streaming

How can I stream audio in spring mvc, like spotify?

sizing problem

im looking to size up my output based of user input but when user input size is greater then 4 then the spacing is all off
Next