Fix starter script
It didn't consume correctly trailing info (eg date on java 10). This is a horribly mistake and makes the script fail on a JRE 10. We could consider updating the binary distribution for 6.4.0... @jsotuyod @adangel
This commit is contained in:
@@ -76,10 +76,10 @@ check_lib_dir() {
|
||||
|
||||
jre_specific_vm_options() {
|
||||
# java_ver is eg "18" for java 1.8, "90" for java 9.0
|
||||
java_ver=$(java -version 2>&1 | sed -n ';s/.* version "\(.*\)\.\(.*\)\..*"/\1\2/p;')
|
||||
java_ver=$(java -version 2>&1 | sed -n ';s/^.* version "\(.*\)\.\(.*\)\..*".*$/\1\2/p;')
|
||||
options=""
|
||||
|
||||
if [ $java_ver -ge 90 ] && [ "${APPNAME}" = "designer" ]
|
||||
if [ "$java_ver" -ge 90 ] && [ "${APPNAME}" = "designer" ]
|
||||
then # open internal module of javafx to reflection
|
||||
options="--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user