
-Xms512m -Xmx2g -XX:+UseG1GC
JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
(formerly AdoptOpenJDK) provides up-to-date LTS releases. linux java runtime environment
echo "export JAVA_HOME=/opt/jdk-17.0.9+9-jre" | sudo tee /etc/profile.d/java.sh echo "export PATH=$JAVA_HOME/bin:$PATH" | sudo tee -a /etc/profile.d/java.sh source /etc/profile.d/java.sh
excludes:
sudo pacman -S jre-openjdk
You can add these lines to your shell configuration file (e.g., ~/.bashrc ) to make the changes permanent. linux java runtime environment
chmod +x myapp.jar
