Questions tagged [java]
Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM). Use this tag when you are dealing with a java program, installing java, or configuring a java installation.
892 questions
1
vote
1
answer
38
views
Adding new file to JAR, works when placing it at the root, but not for a nested destination
When I run make build I want to run mvn clean package, npm run build, then include a file from the NPM build output into the newly created JAR.
This is successful when running the following commands ...
1
vote
1
answer
68
views
Preallocate large continuous memory block for legacy executable
I'm trying to develop J2ME game on Linux using this guide by microgram dev.
The j2me emulator from Oracle Wireless Toolkit works totally fine after Linux reboot.
I run some other apps like browser, ...
2
votes
2
answers
3k
views
Is installing openjdk-21-jdk on Debian 12 from jdk.java.net .deb safe, if its openjdk-21 package looks not working on Debian tracker?
Because Java 25 LTS is coming soon (September 2025) and I've not even yet installed Java JDK 21 LTS (September 2023), I've attempted to do so with a sudo apt install openjdk-21-jdk on my Debian 12. ...
1
vote
1
answer
94
views
Why doesn’t zsh autocomplete .java source files when using java MyFile.java?
Since Java 10 as I recall, we can run Java source files directly from the command line:
bash
$ java Math.java
The JVM compiles and executes the file automatically.
However, in zsh, tab autocompletion ...
2
votes
1
answer
64
views
VM with Rocky Linux OS going down after every two weeks
We were running a set of Java processes on an RHEL box. There was one or two particular services that used to go down due to OOM killer after every 2-3 weeks. We used to get alerts, and it was ...
14
votes
4
answers
39k
views
How can I install Java 8 on Debian 12 (bookworm)?
Under Debian 11, we typically use OpenJDK from adoptopenjdk.net.
This organization will no longer provide new releases: https://adoptopenjdk.jfrog.io/ui/native/deb/dists/
Is there a way to install ...
3
votes
2
answers
9k
views
Java 21 binaries fail to execute on Raspberry Pi OS 64-bit (aarch64)
I'm not able to install Java 21 on Raspberry Pi 5. I downloaded ARM versions from OpenJDK and Oracle, but neither works for me.
When typing ./java, it prints:
No such file or directory
(I'm sure I'm ...
3
votes
2
answers
900
views
When SIGTERM is received by a process, what happens to its children?
I am wondering what happens when a process receives SIGTERM and it has children spawned (e.g. JVM that has /bin/sh commands running).
Is there some sort of automatism or does the parent simply exit ...
4
votes
1
answer
217
views
Can Linux files systems resolve a relative path before resolving symlink?
New Linux user here, freshly transitioned from Windows 10 to Fedora 41. Lot's of experience with many OS's, including various *nix and Unix-like file systems.
I have a standard practice of using ...
0
votes
1
answer
184
views
Java installation issue on Oracle Linux 7.9: "cannot execute binary file" error
I am trying to install Java on a Linux server.
Linux server details
NAME="Oracle Linux Server"
VERSION="7.9"
System Architecture
x86_64
What I have tried so far
I have downloaded ...
0
votes
1
answer
5k
views
Error: could not open `user_jvm_args.txt`
This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
0
votes
0
answers
101
views
Unable to run Logic 2010 on Linux in ChromeOS
I am trying to install Logic 2010 (download link), which uses Java, on the Linux virtual machine in ChromeOS.
I followed steps 0 to 2 in a guide from Reddit, copied the Java folder into the Resources ...
0
votes
1
answer
102
views
Issue Starting Java Application on RHEL Server
I’m experiencing an issue when trying to start a Java application on a RHEL server. I’m confident that the application itself is configured correctly, as it runs without any problems on other servers.
...
1
vote
1
answer
2k
views
Everytime I try run anything Android studio related Java-related errors show up
for example when I run sdkmanager this error displays:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api....
0
votes
0
answers
34
views
what fonts do I need for DimSum Chinese Mandarin Tools?
I found DimSum years ago (I installed it on Windows), it helped me to translate English to Chinese, but unfortunately the project is abandoned, the site is still there, but many links are broken. My ...