ports/cad/sweethome3d/files/sweethome3d.sh.in
Alexey Dokuchaev acc9b3a0dd - Enforce JAVA_VERSION when launching javavm(1), otherwise the program
crashes when several JDK versions are installed and javawm(1) picks
  higher version (happens when /usr/ports/Mk/bsd.java.mk is absent,
  contrary to documented selection process which is designed to behave
  almost identically WRT presence/absence of /usr/ports/Mk/bsd.java.mk
- While here, simplify the script a bit and remove keywords and their
  expansion, they are useless for wrapper scripts

PR:		250268
Submitted by:	rodrigo
2020-10-23 08:23:22 +00:00

6 lines
159 B
Bash

#!/bin/sh
JAVA="%%LOCALBASE%%/bin/java"
SH3D_JAR="%%JAVALIBDIR%%/%%JARNAME%%"
JAVA_VERSION=%%JAVA_VERSION%% exec "${JAVA}" -Xmx1024m -jar "${SH3D_JAR}" "$@"