Skip to content

Commit 9977846

Browse files
committed
Tweak the script files to run Run-REDUCE asynchronously and avoid a console window on MS Windows.
1 parent d48ed6c commit 9977846

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Run-REDUCE

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#! /bin/bash
2+
# Run Run-REDUCE asynchronously on Linux, etc.
23

34
# This batch file and Run-REDUCE.jar must be in the same directory.
45
# The Java bin directory must be in PATH and the environment
56
# variable PATH_TO_FX must be set to the JavaFX lib directory.
67
# Then Run-REDUCE.jar can be run from anywhere by running this batch file.
78
# Any command-line arguments are passed on to Run-REDUCE.jar.
89

9-
java -Djdk.gtk.version=2 --module-path "${PATH_TO_FX//\"/}" --add-modules javafx.fxml,javafx.web -jar "$(dirname $0)/Run-REDUCE.jar" $*
10+
java -Djdk.gtk.version=2 --module-path "${PATH_TO_FX//\"/}" --add-modules javafx.fxml,javafx.web \
11+
-jar "$(dirname $0)/Run-REDUCE.jar" "$@" &

Run-REDUCE.bat

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@echo off
2+
rem Run Run-REDUCE asynchronously on Microsoft Windows.
23

34
rem This batch file and Run-REDUCE.jar must be in the same folder.
45
rem The Java bin directory must be in PATH and the environment
@@ -8,4 +9,5 @@ rem Any command-line arguments are passed on to Run-REDUCE.jar.
89

910
rem Note that %~p0 expands to the path component (with a final \) of this filename.
1011

11-
java --module-path %PATH_TO_FX% --add-modules javafx.fxml,javafx.web -jar "%~p0Run-REDUCE.jar" %*
12+
start /b javaw --module-path %PATH_TO_FX% --add-modules javafx.fxml,javafx.web ^
13+
-jar "%~p0Run-REDUCE.jar" %*

0 commit comments

Comments
 (0)