flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhue...@apache.org
Subject [3/3] git commit: [FLINK-1051] ./bin/start-local.bat prints error message if java.exe cannot be found
Date Thu, 14 Aug 2014 14:37:34 GMT
[FLINK-1051] ./bin/start-local.bat prints error message if java.exe cannot be found


Project: http://git-wip-us.apache.org/repos/asf/incubator-flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-flink/commit/2eea26b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-flink/tree/2eea26b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-flink/diff/2eea26b5

Branch: refs/heads/master
Commit: 2eea26b5e5f6837d95181d0b3e535ee32c715983
Parents: 1b0bbc0
Author: Fabian Hueske <fhueske@apache.org>
Authored: Thu Aug 14 16:05:06 2014 +0200
Committer: Fabian Hueske <fhueske@apache.org>
Committed: Thu Aug 14 16:37:41 2014 +0200

----------------------------------------------------------------------
 flink-dist/src/main/flink-bin/bin/start-local.bat | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/2eea26b5/flink-dist/src/main/flink-bin/bin/start-local.bat
----------------------------------------------------------------------
diff --git a/flink-dist/src/main/flink-bin/bin/start-local.bat b/flink-dist/src/main/flink-bin/bin/start-local.bat
index 7e0b28a..e77b40c 100644
--- a/flink-dist/src/main/flink-bin/bin/start-local.bat
+++ b/flink-dist/src/main/flink-bin/bin/start-local.bat
@@ -48,6 +48,11 @@ RENAME "%outname%" "%outname%.0"  2> nul
 DEL "%logname%.6"  2> nul
 DEL "%outname%.6"  2> nul
 
+for %%X in (java.exe) do (set FOUND=%%~$PATH:X)
+if not defined FOUND (
+    echo java.exe was not found in PATH variable
+    goto :eof
+)
 
 echo Starting Flink job manager. Webinterface by default on http://localhost:8081/.
 echo Don't close this batch window. Stop job manager by pressing Ctrl+C.


Mime
View raw message