We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6648205 commit 4bdab42Copy full SHA for 4bdab42
linux/run.sh
@@ -16,10 +16,10 @@
16
# along with CustomLauncherRewrite. If not, see <https://www.gnu.org/licenses/>.
17
#
18
19
-output=$(find /opt/CustomLauncherRewrite/ -name CustomLauncherRewrite*.jar -exec java "-jar" {} \;)
20
-
21
-case "java.lang.UnsupportedClassVersionError" in
22
- *$output*)
+# Check if Java is installed and the version is at least 17
+if java -version 2>&1 | grep -q "version \"17"; then
+ latest=$(ls -t CustomLauncherRewrite-*.jar | head -n1)
+ java -jar $latest
23
+else
24
notify-send -i stop "Please update Java JRE to version 17 or higher!"
- ;;
25
-esac
+fi
0 commit comments