New answers tagged java
0
votes
Refer another Java version in a systemd service file
export PATH="${JAVA_HOME}/bin:${PATH}"
at the beginning of Connect.sh, or, assuming you use "$JAVA" instead of java all over your script, remove:
if type -p java >/dev/null; ...
1
vote
Accepted
How to get the java assembly instructions
With +PrintAssembly, you need a disassembler plugin. If you’re using Debian or a derivative, install libhsdis0-fcml.
Note that openjdk-17-dbg isn’t a debug JDK; it’s a package containing debugging ...
1
vote
Accepted
"Too small maximum heap" Java error in Manjaro Linux running through terminal
The default value for the xmx and xms settings are in bytes so these values are way too small.
From man java:
-Xmsn
Specify the initial size, in bytes, of the memory allocation
...
Top 50 recent answers are included
Related Tags
java × 838linux × 144
debian × 85
centos × 78
ubuntu × 77
software-installation × 50
bash × 49
rhel × 45
shell-script × 38
jdk × 38
tomcat × 30
environment-variables × 28
path × 27
fedora × 26
linux-mint × 22
process × 22
shell × 21
openjdk × 19
command-line × 18
arch-linux × 18
rpm × 18
apt × 16
memory × 15
ssh × 14
x11 × 14