1,916,868 questions
-1
votes
0
answers
25
views
the package javax.mail is not accessible
screendump
and
screendump2
and
screendump3
I just can't figure it out and I'm begging for insight. Im writing an email app and Im beginning with examples Ive found lying around.
My code has the ...
0
votes
0
answers
15
views
GridDB Error 60079 (DS_TIM_ROW_DATA_INVALID) when inserting row – value exceeds limit?
I am getting the following error while inserting data into a GridDB container:
60079 DS_TIM_ROW_DATA_INVALID ERROR
Registration of row failed. Value of column in row specified for row registration,
...
Advice
1
vote
6
replies
45
views
Are there programs concerning the notion of ineffable ordinal?
For instance, programs for determining if this description applies.
Of course it probably presupposes being able to find an appropriate algorithm.
The programs could be in any language, though I have ...
Advice
1
vote
3
replies
59
views
Difference between ArrayList and LinkedList in Java
I am a beginner learning Java and data structures. I understand that both ArrayList and LinkedList are implementations of the List interface, but I am confused about when each one should be used.
Can ...
1
vote
0
answers
34
views
mvn gluonfx:link errors on Zorin OS 18. liblibchelper.a and -lstdc++ No such file or directory
Relevant information:
Environment Vars
xxx@genV:~/git/OmegaGitHUBRepo/omegaFxProject$ echo $JAVA_HOME
/lib/jvm/java-25-openjdk-amd64
xxx@genV:~/git/OmegaGitHUBRepo/omegaFxProject$ echo $GRAALVM_HOME
/...
-3
votes
0
answers
29
views
How to force a specific field order in JSON output using Jackson? [duplicate]
I need my JSON output to show the "idTransanction" and "details" fields first for logging purposes. Currently, Jackson alphabeticalizes them or follows a random order. Is there an ...
Advice
1
vote
6
replies
122
views
Is Java still worth learning to get a job soon? Seniors — please spit the truth
I’m an early-career dev deciding what to double down on for job hunting in the next 3–12 months. I keep hearing conflicting stuff — “Java is dying”, “junior Java roles are super limited/competitive”, ...
-2
votes
1
answer
73
views
Cannot run program ""C:\PROGS\java\Oracle\jdk-8"\bin\java" : CreateProcess error=5, Access is denied [closed]
I can run java:
C:\\PROGS\\java\\Oracle\\jdk-8\\bin\\java -version
java version "1.8.0_441"
Java(TM) SE Runtime Environment (build 1.8.0_441-b07)
Java HotSpot(TM) 64-Bit Server VM (...
Best practices
0
votes
1
replies
44
views
Does the Java Memory Model permit reordering writes to a volatile variable into a loop?
I have been learning about the double-checked locking problem in Java, and the Java Memory Model and which optimisations are permitted to be made to a program's execution.
I am currently addressing a ...
0
votes
1
answer
55
views
Custom swimming entity (Animal) won't move in water
I'm making a Fabric 1.21.11 mod (Mojang mappings, GeckoLib 5.4.4) with a custom whale entity that extends Animal. The whale won't swim properly. It either stands still, floats to the surface, or gets ...
-2
votes
0
answers
42
views
Spring Boot 4 + IntelliJ 2025: ClassNotFoundException for PfeApplication [closed]
Error: Could not find or load main class com.backend.PFE.PfeApplication
Caused by: java.lang.ClassNotFoundException: com.backend.PFE.PfeApplication
Class PfeApplication is located in src/main/java/...
0
votes
1
answer
38
views
With ArchUnit, how can I make sure that all classes in my project are starting with the same package?
I have a Gradle project with different dependencies.
I now want to make sure that all source Java classes in my project are starting with the same packages.
How can I achieve this with ArchUnit?
Best practices
1
vote
3
replies
62
views
Safely validating AST of LLM-generated PostgreSQL queries in Java to prevent side effects
I am building a Text-to-SQL application where an LLM generates PostgreSQL queries based on natural language. These queries are executed against a database using a strict read-only user. However, as an ...
-6
votes
1
answer
65
views
How can I check if a Spring @Transactional method is actually running in a transaction? [duplicate]
public class MyService {
@Transactional
public void doSomething() {
// How can I check here?
}
}
I have a Spring Boot service method annotated with @Transactional.
How can I ...
Best practices
3
votes
2
replies
57
views
How to think the organisation of a Java Spring-Boot multi-module project in a clean architecture? I'd like to redispatch/reforge an hexagonal one
My context
I have a large Java Spring-Boot project that have fitted in an hexagonal architecture. It is focused on cities and local authorities problematic, and study various subjects: cities, ...