Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!

Join

java-help

❓︱qotw-answers

Hi

Hello I am new this server

serialization in java

//the code display error when i can "readObject" method. public class Person { private String city; ...

Making Tilesprites with jframe

Hello, We're making a homework assignment using jframe. Just a simple point and click adventure and the assignment itself is finished. Just want to add some Sexappeal by making the a map using Tilesprites. My question is if you have any tips on how I should approach this. Can I do this with jframe itself or do I need something like openCV or other things?...

First android app

I'm wanting to know how I can get the full use out of my little application. I want to remove the huge black area below me grey background in favor of more UI space and also remove the black strip at the top too. Iv attempted multiple ways to do this but nothing seemed to work. I'm not exactly sure what to try. Note iv hd chat gpt try to help me with this for hours to no avail. See image to see the black areas at top and bottom of UI. Preferably I can figure this out so I can make a full screen...
No description

Modded Minecraft 1.7.10 Entity Problems. Cannot load the overworld.

When I change to overworld: Errors: Server attempting to transfer player IcyBlues9 to dimension 0 [Client thread/INFO]:Adding world access to world net.minecraft.client.multiplayer.WorldClient@5de25e97 [Server thread/ERROR]:"Silently" catching entity tracking error....
No description

Can someone help understand this code snippet

```java private Constructor<T> getConstructor0(Class<?>[] parameterTypes, int which) throws NoSuchMethodException { ReflectionFactory fact = getReflectionFactory();...

Convert DB into mapped classes Spring Boot JPA Hibernate

I'm using Spring Boot with Hibernate JPA and Gradle, how I can transform an already existing MariaDB database into mapped Java classes using Hibernate? Which dependencies and configurations are minimally needed?

Endpoints just return 404

I'm testing my endpoints with curl but them always return 404 code curl -X POST -H "Content-Type: application/json" -d '{"name":"Chocolate"}' http://localhost:8080/latte/api/v1/flavors ```...

Difference in if statements

Hey hey, what exactly is the different between (someVariable == someValue) (someVariable.equals(someValue)) (someVariable.equalsIgnoreCase(someValue))...

my admin commands are no working

local Players = game:GetService("Players") local StarterGui = game:GetService("StarterGui") local Admins = { "Cookie12bo", "Mrpenguin892"} local function IsAdmin(Player)...

Is there a standard interface for objects that populate their values from same-type objects?

Essentially the opposite of Cloneable, an interface declaring some method like this: ```java interface CopyableFrom { void copyFrom(Object other); }...

Intelij Ultimate park

Hi guys please my intelij ultimate park is experiencing in 5 days' time and I have been using student part ever since I was hoping if someone can assist me with a link to get at least 6 months - 1-year subscription worth. Please if you can help me kindly signify or DM Thanks in advance...

struggeling with my endpoints backend

dunno how to fix the 401 error

having trouble runing by app in intellij

hello guys i started project in intellij using spring boot and maven and lombok all that stuff but when i run the app it shows this error java: java.lang.ExceptionInInitializerError com.sun.tools.javac.code.TypeTag :: UNKNOWN
i use jdk 24 bythe away ...

hello ! i'm a java beginner , planning to take up data science

i'm new to java , i've known C for 8 months now , but now i'm planning to take up data science , which is why i'm concerned for not learning necessary language or skill-set , this is an early stage for me , would like to know opinions of someone good at JAVA or DATA SCIENCE to at least help me make a better decision whether JAVA is or not beneficial for DS .

Having trouble with localhost to Java (Eclipse)

Hi, I'm experiencing an issue connecting to my project on localhost. The server starts successfully, but when I try to access my servlet, the connection doesn't work and I receive a 404 error. I'm using WildFly, and the servlet is properly annotated with @WebServlet. Could you help me identify what's going wrong?
No description

How to I import a custom Jar library in intelij?

I have a Jar file of my complied code and I would like to important into other projects how can i do that in intelij idea?

Java tracing exam

Hello guys I have my Java tracing exam tomorrow and I have no idea how to trace can someone please help me

Something weird is happening with my Eclipse IDE

So this morning, I opened up my computer to continue a project I was working on. Then my project I was working on(the only one in the workspace as this is my first project) was gone. I panicked but then realized I could just re-import it back in. After I got it back in the workspace, my editor looked different. None of the variable names were highlighted in a different color as they normally are. I thought nothing of it, but then, I couldn't open the game while tabbed in the UI class I made. I tabbed into my main Game class, and ran the game, and saw that I had an error Exception in thread "main" java.lang.Error: Unresolved compilation problem: Syntax error, insert "}" to complete ClassBody ...