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

Hexagonal architecture question

Hi, I have a question on hexagonal architecture here. Does anyone know what it should be? https://stackoverflow.com/questions/79542731/hexagonal-architecture-question-with-respect-to-ports...

im making a minecraft Plugin for paper, but i need help actually... you know, making it

im a server owner and content creator for minecraft and completely clueless when it comes to coding, so im hoping anyone from the code scene can help me make the plugin, the plugin runs off of the idea of classes, example of one class: the meleeist; 2 abilities, ability names: seismic slam, beserker charge, if this sounds interesting to you, message me so i can invite you to the discord and we can discuss the plugin in DMS, (u join the smp discord so i can give you publicity because im broke asf...

Starting with profiling. any good suggestions for books

I am trying to understand software profiling from a theoretical perspective. Any suggestions for books/articles/video lectures are appreciated.

Stack Interface, Deque Implementation: Worth it?

First time poster here, so please be lenient :) I have learned that the Stack class in Java inherits Vector class, which breaks LIFO contract. I also learned that Deque (a double-ended queue, seems contradictory) does not strictly maintain LIFO contract and is not thread-safe as far as I know (though this can be solved with ConcurrentLinkedDeque). Anyway, I have found a solution being:...

Resources for java profiling

I am trying to understand software profiling out of interest. Wanted to read about it some more but the resources I found only focus on the tools used for it. I wanted to understand it through a book/video[not focusing the tool itself but the concept of software profiling]. I will really appreciate any suggestions regarding this.

Using Eclipse for Processing 4

Hi... I've been coding in Processing 4 lately, and would like to move up to a better IDE. I've looked online for resources, and while there appear to be lots, it turns out they're mostly for Proclipse, a discontinued Google Code project from over 10 years ago, or just old enough not to apply to Processing 4: the newest one I've encountered was a YouTube video from 2022, that used Processing 3, and JRE 8; Processing 4 uses Java SE 17, and while I tried to adapt the how-to vid to mine modern environment. This is the vid I followed, except selecting Java 17 instead of 8....
No description

Streaming jar in

Hey! so my minecraft mod has a loader as its a private mod. it recieves the b64 buffer of the jar file, then starts loading the classes. the thing is though it has errors for the minecraft classes, like: Caused by: java.lang.ClassNotFoundException: net.minecraft.class_2382 Any help would be appreciated!...

What is the best way to transfur a java project from intellij to eclipse?

I've been trying to get my java project on eclipse from intellij since its free but I've been having issues where the frontend is not recognizing the backend which is throwing errors. I am very new to java but have been having many difficulties.

JWT & Spring Boot

Hello, I develop a website and I have some questions for the connexion with users. For the back-end, I use Spring Boot and I have this function : ```java @PostMapping("/login") public ResponseEntity<?> loginUser(@RequestBody User user) {...

Help with Output Formatting

Why and how does this line output the following Input: float myFloat = 45.1342f;...
No description

Error handling

I am getting the following feedback : --------------------------- Platform Feedback Below ---------------------------- Some customers reported that the service is returning client errors that break their retry logic: 400 is an unexpected status code SRE Says: your solution is not working well enough to be promoted to production ...

There is this macro mod for Minecraft 1.8.9, and I want to play with it

I don't know if its unsafe but so far trying to access this code has been difficult. If your interested you can DM me but be careful I don't know whats inside of it but i've opened it and nothing has happened yet, also I'm on mac so its buggy. idk if i'm aloud to post this. Have a great day...

can not launch external service.

It seems like I accidentally came on the close button??? so this is a repost I tried a Bunch of Stuff and for some reason I just cant launch MC via an Intent from my app but via adb shell it works just fine. important to note is that I do not get any log info NOR an exception thrown it seems meaning I have no clue why its not working....

help with hw

Can anyone help me understand this hw assignment? https://sourceb.in/NEzXX3r2di Given a base Plant class and a derived Flower class, complete main() to create an ArrayList called myGarden. The ArrayList should be able to store objects that belong to the Plant class or the Flower class. Create a method called printArrayList(), that uses the printInfo() methods defined in the respective classes and prints each element in myGarden. The program should read plants or flowers from input (ending with -1), add each Plant or Flower to the myGarden ArrayList, and output each element in myGarden using the printInfo() method. Ex. If the input is:...

Making a previously non-fulscreen application fullscreen

I was looking around online and I wanted to clarify something. I have an application that generally launches in windowed mode, but I want to provide an option to launch it in fullscreen mode. Hwoever, when it goes fullscreen, items in screen draw in the smaller format, it doesn't scale with the window. From what I've seen online, you need to code that behaviour in by hand, but I wanted to see if there was perhaps a way or a silly mistake I made that would make it perform that behaviour automatically? automatically adjust for screen size? is that even a thing?...

can not launch external Service.

I tried a Bunch of Stuff and for some reason I just cant launch MC via an Intent from my app but via adb shell it works just fine. important to note is that I do not get any log info NOR an exception thrown it seems meaning I have no clue why its not working. ...

how to log sensitive information?

hey guys. i have java spring app which is running on the server as a linux service. and it logs everything into syslog. i want to log some sensitive information, such as customerId and transactionId. whats the best approach to this problem? thanks in advance.

Java Game TitleScreen

Hello, i am currently discovering Java and i have to create a Game as a School Project, i need to create a TitleScreen However it won't really work how i want. I am currently Working on IntelliJ IDEA and my java class is red, does this mean there's a problem in my code ?...
No description