diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java index f47e8f3..9344b46 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java @@ -600,6 +600,7 @@ private void retrieveInterprocessingTensors(List> tensors) throws RunM private List getProcessCommandsWithoutArgs() throws IOException, URISyntaxException { String javaHome = System.getProperty("java.home"); String javaBin = javaHome + File.separator + "bin" + File.separator + "java"; + javaBin = "\"" + javaBin + "\""; String modelrunnerPath = getPathFromClass(DeepLearningEngineInterface.class); String imglib2Path = getPathFromClass(NativeType.class);