Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
Updated startup scripts with java.library.path in tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-pluskal committed Jul 28, 2019
1 parent 2864890 commit ed89a35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/scripts/startMZmine_Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ mkdir $TMP_FILE_DIRECTORY
# Java specific commands
# **********************

JAVA_PARAMETERS="-showversion -classpath lib/\* -XX:+UseG1GC -Djava.io.tmpdir=$TMP_FILE_DIRECTORY -Xms256m -Xmx${HEAP_SIZE}m"
JAVA_PARAMETERS="-showversion -classpath lib/\* -XX:+UseG1GC -Djava.io.tmpdir=$TMP_FILE_DIRECTORY -Djava.library.path=$TMP_FILE_DIRECTORY -Xms256m -Xmx${HEAP_SIZE}m"
MAIN_CLASS=net.sf.mzmine.main.MZmineCore

# Make sure we are in the correct directory
SCRIPTDIR=`dirname "$0"`
cd "$SCRIPTDIR"

export LD_LIBRARY_PATH="$TMP_FILE_DIRECTORY"

# This command starts the Java Virtual Machine
echo "$JAVA_PARAMETERS" $MAIN_CLASS "$@" | xargs $JAVA_COMMAND

Expand Down
2 changes: 1 addition & 1 deletion src/main/scripts/startMZmine_MacOSX.command
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mkdir $TMP_FILE_DIRECTORY
# Java specific commands
# **********************

JAVA_PARAMETERS="-showversion -classpath lib/\* -XX:+UseG1GC -Xdock:name='MZmine 2' -Xdock:icon=icons/MZmineIcon.png -Djava.io.tmpdir=$TMP_FILE_DIRECTORY -Dapple.laf.useScreenMenuBar=true -Xms256m -Xmx${HEAP_SIZE}m"
JAVA_PARAMETERS="-showversion -classpath lib/\* -XX:+UseG1GC -Xdock:name='MZmine 2' -Xdock:icon=icons/MZmineIcon.png -Djava.io.tmpdir=$TMP_FILE_DIRECTORY -Djava.library.path=$TMP_FILE_DIRECTORY -Dapple.laf.useScreenMenuBar=true -Xms256m -Xmx${HEAP_SIZE}m"
MAIN_CLASS=net.sf.mzmine.main.MZmineCore

# Make sure we are in the correct directory
Expand Down
2 changes: 1 addition & 1 deletion src/main/scripts/startMZmine_Windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ echo.
:: Java specific commands
:: **********************

set JAVA_PARAMETERS=-showversion -classpath lib\* -XX:+UseG1GC -Djava.io.tmpdir="%TMP_FILE_DIRECTORY%" -Xms256m -Xmx%HEAP_SIZE%m
set JAVA_PARAMETERS=-showversion -classpath lib\* -XX:+UseG1GC -Djava.io.tmpdir="%TMP_FILE_DIRECTORY%" -Djava.library.path="%TMP_FILE_DIRECTORY%" -Xms256m -Xmx%HEAP_SIZE%m
set MAIN_CLASS=net.sf.mzmine.main.MZmineCore

:: Make sure we are in the correct directory
Expand Down

0 comments on commit ed89a35

Please sign in to comment.