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

Uploading a large file using a HttpClient

I'm using Methanol (an extension over the standard HttpClient) to upload a large file to a server. When I track the file upload progress is appears to buffer 2GB at a time. This causes OOM errors unless I increase the memory allocation pool for the JVM which is undesirable. I've looked through all the documentation and all mentions of internal buffers have the default around 16KB which is much smaller than what I am seeing....

Good night everyone. I need someone who already have the habit of using AWS S3 and Java. I need help

I'm trying to delete an file that is inside a folder thats inside my bucket in S3, but its not working for me. it only let me delete a file thats outside de folder. Can someone please help?

Warehouse exercise for CS class

Question: Suppose the following code executes given a Warehouse class following the specification from the assignment. What would be printed out? If my understanding is correct I have a max of 42 and I can only take 37 given my warehouse (w) then I receive 86 new items of 46's but since my warehouse can only take 37 I take 37 and now since my max is 42 I'm left over with 5...
No description

Need help with finishing up to develop my crazy eights UI game

Need help with finishing up to develop my crazy eights UI game

Additional Fields in spring security

https://stackoverflow.com/questions/45546327/get-current-users-extra-information-by-thymeleaf-sec-tag-working-with-spring-se I'm trying to make a project where you can view your additional fields or information like first name, last name etc in the webpage. Using <p><span sec:authentication="principal.firstname"></span></p> didn't help either. It said that user object has no such field. I already created custom spring security user but now it doesn't take any passwords and doesn't allow login. username and password i entered are correct. The above link i posted is the solution to my question but i still can't get it to work. This is not for login purpose. Only for displaying information from the database (firstname lastname email etc)...

confused about a question on my practice exam with switch and case

public class Test { public static void main(String[] args) { for (int i = 1; i <= 7; i++) { switch (i) { case 1:...

Call method from different class in a different package (beginner)

Hello, i have the following Problem: I have a class Histogramm.java inside a package Basis And my Main.java inside the package Main Histogramm.java has a function i want to call from Main.java...

Do not receive Headers from Front-end with JWT

Hi, I work on a website and I send a token with axios with the front-end ```js export default { data() { return {...

PKI in java

has anyone worked in PKI using java ? more specific using bouncy castle and iaik library

Function call and its definition giving different results

Any ideas why this is happening? Can post more context if needed but this seems pretty clear -- isTurn() is a one-liner which does not give the same result as that line. No variables are being modified in between calls.
No description

help with javafx buttons

hello everyone could someone explain me why the Easy, Medium and Hard buttons do not work in this program like when i do set on action they just do not do any action when i click them like 0 reaction .

help with buttons

hello everyone, for some reason the Easy, Medium and Hard buttons in this code are not working can someone explain me why pls i really need it right now.

All is red

I opened IntelliJ and i saw that everything is RED, please help Image...
No description

JPanel add method not accepting components

My JPanel object isn't accepting components for it's add method. I am trying to add other components of type JPanel to this object and am unabke to. Anyone know why?
No description

buttons are not working

hello everyone i have this code in javafx but for some reason the actions of Easy,Medium,Hard buttons in Difficulty Frame are not working can someone explain why this is the whole codez

DEVELOPING ON LINUX

Hey guys, I'm trying to switch to Linux and have been using Mint for about 3 months, but I don't like the system. I also have no need or time to use super customizable distros like Arch and Kali (apparently programmers' favorites), do you guys have any recommendations? I made some research and was thinking about Fedora or Zorin

JPA QueryDSL

Hi guys i just want to ask some help from you. Is there someone know how to setup querydsl in my spring boot project?. I'm having a hard time figuring out on internet how to set it up. I hope someone knows and responds me thank you guys.

Failed Formatted Test for Quipu program (CS 111)

Hi, everyone. Please forgive me, this is my first time asking for help as well as seeking help from a large server. I had to resort to this because my classmates, instructor, and tutors/helps are unavailable to answer me as of lately. I read the #❗︱how-to-get-help and I'm unsure if my type of inquiry is allowed. I'm just desperate because no one at my college and their resources is able to get back to me or help me. Since I do not having Discord Nitro (because my coding seems big to paste) I have my coding here to share via ChatGPT canvas, I hope this is okay: https://chatgpt.com/canvas/shared/67f1d5f2ac608191988f9483eedcd484 ...
No description

killing vs interrupting a Thread

what is the machine functionality difference between killing vs interrupting a Thread and why do we no longer use killing a Thread? maybe something to do with error handling idk

`java.lang.NumberFormatException` in StreamCipher - Key Parsing Issue

Why am I encountering a java.lang.NumberFormatException in my Java StreamCipher program for a simple stream cipher task? Could someone point me in the right direction? The error occurs when I try to parse the key from the command line arguments using Integer.parseInt(). Specifically, the error message says "For input string: "4294966017"". Here's the relevant snippet from my StreamCipher.java main method: ```java...