Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Jan 15, 2024
1 parent ff8df08 commit 0d96a27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main/resources/com/github/jlangch/venice/venice.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ if not exist %VENICE_CONSOLE_HOME%\libs (
exit 2
)

if not exist %JAVA_8_HOME%\libs (
echo Error: The Java 8 home dir %JAVA_8_HOME% does not exist!
timeout /t 10
exit 2
)


cd %VENICE_CONSOLE_HOME%

"%JAVA_17_HOME%\bin\java.exe" ^
"%JAVA_8_HOME%\bin\java.exe" ^
-server ^
-Xmx2G ^
-XX:-OmitStackTraceInFastThrow ^
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/com/github/jlangch/venice/venice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ if [ ! -d ${VENICE_CONSOLE_HOME}/libs ]; then
exit 1
fi

if [ ! -d ${JAVA_8_HOME} ]; then
echo
echo "Error: The Java 8 home dir ${JAVA_8_HOME} does not exist!"
sleep 5
exit 1
fi


cd ${VENICE_CONSOLE_HOME}


${JAVA_11_HOME}/bin/java \
${JAVA_8_HOME}/bin/java \
-server \
-cp "lib:libs/*" com.github.jlangch.venice.Launcher \
-Xmx2G \
Expand Down

0 comments on commit 0d96a27

Please sign in to comment.