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!
JoinJCH
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!
Joineclipse unable to create maven project
hello guys please i'm trying to create maven project but when i try to searche for maven archetype simple i don't find it how fix that
IntelliJ unable to run the class/compiled class
My problem is not being able to run the core.DTNSim because intelliJ said that some methods are undefined. Weirdly, I already set the project source to
src directory, then setting the run config's output directory to the same one i compiled the project (target). The run does not want to run. I'm not sure what other informations I can provide, but it is all in the picture.
I am looking for a Java developer who is fluent in Chinese
If anyone is fluent in Chinese and Java programming Language, please DM me.
There are some of fantastic job opportunities.
Thank you....
Help, uni project
Can someone help mi with my uni Project, the Deadline is right around the corner and im stuck. It has a few classes so I think it would be better to dm. Please...
How do I make a .jar file?
Hello,
I want to learn java, and I got a book for it. Now, the book doesn't cover how to make a .jar file (i think), so how do i make one?...
what is the next step after learning java?
hello after learning java and OOP i want to know what is the next step
Best approach to fetch hundreds of thousands of records
I'm wondering what's the best approach or best practice around fetching hundreds of thousands of records for initial full data loads to transfer somewhere else?
Currently, I'm using jpa + pagination and it is slow. I'm loading around ~400k objects in memory but is the better approach to use jdbctemplate? What if you also need to join a few tables?
What would you recommend here?...
Virtual threads
If I have the following implementation
```
@Configuration
@EnableAsync
public class VirtualThreadConfig {...
Print jobs get automatically deleted when using javax.print on windows to print from pdf file?
Anyone here have any idea about why does it happens and how to make it work?
spring boot resources not recognized
hi, i'm using spring boot v3.4.5 in IntelliJ ultimate with a very basic gradle buildscript [1] (no custom paths, no modules, just dependencies and a library as subproject)
now, when running the project using gradle task
bootRun, no resources are ever available, neither by intellij's builtin spring application run configuration
a google search only results in the lie that it should load from src/main/resources path, but it simply does not
i can see the resource files in build/resources and i have tried clean before bootRun as noted by someone on stackoverflow [2], but that also yielded no change whatsoever...Does Java have pass by reference?
Just curious how this works in Java, seems like it isn’t like classic pass by reference in other languages like C/C++.
Proper OOP patterns practices with factory
Hey everyone! 👋
I'm working on a feature to decorate API responses with currency formats based on user config (from S3). I initially handled validation and decoration with simple singletons, since I'm actually writing code in Scala, I'm trying to follow fp practices and use singleton to create something where to place a function for logic. My idea to not overcomplicate things and just use plain functions, since this is a very simple feat imo.
A new team lead has recently joined my team. He asked me to refactor my pr using Factory class for creating a "currency plugin" instance. The proposed logic for this Factory is:...
Jar to .exe
Guys, I'm making a GUI with JFrame in java, is it possible to make a runnable(.exe) that basically everyone can open, meaning that you dont need java to actually use it, because I was doing it for my brother for work, and where he works he cant install java
JDBC is not linking to neoforge jar
Hi! I am creating a server-side neoforge mod, that uses jdbc (sqlite).
I am adding it to project via Gradle:
dependencies { implementation("org.xerial:sqlite-jdbc:3.49.1.0") }
But the resulting jar size is only 9 kb, that's strange. And I see output when launching minecraft server:...quick sort
Can someone explain how this works and how can i do the exact process for this array [7,-3,12,5,-1,5,0,16,9,7] since there is same numbers in this list im confused about it I also didnt understand in this process there is p q j and r. In the videos i have watched on youtube there is only i and j. The picture i sent is from khan academy and this is the format i will be having in the exam so im tryna understand it. Thank you for the responses

need help with installing java on VS code.
I have some troubles with "Failed to resolve main method codeLens: 'class QuickStart {' is not a valid Java identifier". I have installed "Java" and "Language Support for Java(TM) by Red Hat".
Are all Java programs reproducible?
I am learning about deterministic and reproducible builds and come from a more c/c++ background. Assuming JDK and JVM/JRE are the same, does compiling Java bytecode always yield the same results despite building on different machines? Is Java usually more deterministic compared to c/c++ and other compiled languages?
im failing to connect a sql server db to a spring boot application
i have this in application.properties but the table dont update

Plz help
I am following this youtube tutorial for springboot and my code is giving error , attaching the Screenshots , can someone please help , i tried chat gpt and from 2 hours i cant figure out whats going on
