SQL Workbench/J Git Repository https://www.sql-workbench.eu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
689 B

@echo off
title SQL Workbench/J
setlocal
set JAVA_BINPATH=
if exist "%~dp0jre\bin\java.exe" (
set JAVA_BINPATH=%~dp0jre\bin\
) else (
if exist "%WORKBENCH_JDK%\bin\java.exe" (
set JAVA_BINPATH=%WORKBENCH_JDK%\bin\
) else (
if exist "%JAVA_HOME%\jre\bin\java.exe" (
set JAVA_BINPATH=%JAVA_HOME%\jre\bin\
) else (
if exist "%JAVA_HOME%\bin\java.exe" set JAVA_BINPATH=%JAVA_HOME%\bin\
)
)
)
set wbdir=%~dp0
set cp=%wbdir%sqlworkbench.jar
set cp=%cp%;%wbdir%\ext\*
"%JAVA_BINPATH%java.exe" -Dvisualvm.display.name=SQLWorkbench ^
-Xmx512m -cp "%cp%" workbench.console.SQLConsole %*