stechy1
stechy1
JCHJava Community | Help. Code. Learn.
Created by Kale Vivi on 2/27/2025 in #java-help
What are some things and language features you use to reduce writing/time spent on boilerplate?
On the other hand the way how Lombok is doing that is not nice - modifying AST during annotations processing. I just saw a very nice presentation about this topic and basically JDK will close some api on which Lombok is relying on. So the developers will have a hard time maintaining this project...
15 replies
JCHJava Community | Help. Code. Learn.
Created by everymen on 2/23/2025 in #java-help
How to describe nested struct layout through jdk 22 ffm APIs?
Hello, Recently I played a bit with the Java FFM API and I could just recommend you to try the "jextract" tool. It should generate a mapping from the provided header file to Java classes. So you don't have to write this cumbersome code by hand. https://github.com/openjdk/jextract/blob/master/doc/GUIDE.md
10 replies
JCHJava Community | Help. Code. Learn.
Created by ysemoo_ on 2/11/2025 in #java-help
JavaFX runtime error
You have to click to "run hello world using Maven" 😇
24 replies
JCHJava Community | Help. Code. Learn.
Created by ysemoo_ on 2/11/2025 in #java-help
JavaFX runtime error
I would recommend you to read the "getting started" guide https://openjfx.io/openjfx-docs/#install-javafx
24 replies
JCHJava Community | Help. Code. Learn.
Created by ysemoo_ on 2/11/2025 in #java-help
JavaFX runtime error
Hi, we need more information about the project. How did you import JavaFX dependencies? Do you use only FX SDK or letting Maven/Gradle handle it?
24 replies
JCHJava Community | Help. Code. Learn.
Created by Lort533 on 1/23/2025 in #java-help
Overwriting a declared method?
Hi, what do you mean by "override this function"? The field has a "set" method, because it allows you to set the value of the field.
10 replies
JCHJava Community | Help. Code. Learn.
Created by °~° on 1/23/2025 in #java-help
quick help with a simple confusion
Hi, it is about condition, when to break the loop. In the for cycle, the condition is "i<4" but in the while loop you have "i==4". And also the difference is when you increase the "i" variable.
9 replies
JCHJava Community | Help. Code. Learn.
Created by Jean on 12/29/2024 in #java-help
How do you test GUI on a modern JavaFX application?
Hello, I'm using jUnit 5 for small tests and TestFX for integration tests and it works like a charm 😊
7 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time (PING ON REPLY) on 12/12/2024 in #java-help
In Project Annotation Proccessor
Hi, if you have some code used in a production code and also in annotations processor, you can extract it to a separated module...
270 replies
JCHJava Community | Help. Code. Learn.
Created by Aze on 11/1/2024 in #java-help
Gradle, Ebean: Service loader didn't find a SpiContainerFactory?
I hope I will not get banned by posting this link 🙂 https://www.baeldung.com/java-spi
13 replies
JCHJava Community | Help. Code. Learn.
Created by Aze on 11/1/2024 in #java-help
Gradle, Ebean: Service loader didn't find a SpiContainerFactory?
Hello, do you know how the SPI works? Providing a class in your jar is just one part. As a second part, you have to configure META-INF/services to inform java about your class...
13 replies
JCHJava Community | Help. Code. Learn.
Created by DevLop games on 8/5/2024 in #java-help
Can't import javafx
Hi, start using Maven or Gradle to handle java dependencies/libraries and you will not experience this kind of issues 😉
5 replies