diff options
Diffstat (limited to 'hierarchyviewer/etc/hierarchyviewer.bat')
-rwxr-xr-x | hierarchyviewer/etc/hierarchyviewer.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hierarchyviewer/etc/hierarchyviewer.bat b/hierarchyviewer/etc/hierarchyviewer.bat index 2024a79..28a4d8d 100755 --- a/hierarchyviewer/etc/hierarchyviewer.bat +++ b/hierarchyviewer/etc/hierarchyviewer.bat @@ -24,6 +24,11 @@ rem Change current directory and drive to where the script is, to avoid rem issues with directories containing whitespaces. cd /d %~dp0 +rem Check we have a valid Java.exe in the path. +set java_exe= +call find_java.bat +if not defined java_exe goto :EOF + set jarfile=hierarchyviewer.jar set frameworkdir= set libdir= @@ -38,4 +43,4 @@ if exist %frameworkdir%%jarfile% goto JarFileOk set jarpath=%frameworkdir%%jarfile% -call java -Xmx512m -Djava.ext.dirs=%frameworkdir% -Dhierarchyviewer.adb= -jar %jarpath% %* +call %java_exe% -Xmx512m -Djava.ext.dirs=%frameworkdir% -Dhierarchyviewer.adb= -jar %jarpath% %* |