#!/bin/bash JAVA_PARAMS="-Dlog4j2.formatMsgNoLookups=true -Xmx1024M -Xms1024M" JAVA=java SERVER=server.jar # Overriding $PATH can be useful to force third party launch scripts to use the # correct Java, and is just a more elegant way than the above method. # For example: # PATH="/usr/lib/jvm/java-17-openjdk/bin:$PATH" ; export PATH