From 93c023e71f82b448e317ef371c983898680d347f Mon Sep 17 00:00:00 2001 From: Andreas Fester Date: Mon, 8 Jul 2019 07:35:55 +0200 Subject: [PATCH] Issue #50: Allow to launch ScenicView from within a path containing spaces --- src/main/java/org/fxconnector/remote/RemoteConnectorImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/fxconnector/remote/RemoteConnectorImpl.java b/src/main/java/org/fxconnector/remote/RemoteConnectorImpl.java index 9440678..5dd99ba 100644 --- a/src/main/java/org/fxconnector/remote/RemoteConnectorImpl.java +++ b/src/main/java/org/fxconnector/remote/RemoteConnectorImpl.java @@ -429,7 +429,7 @@ private File findAgent() { /** * Find jar distributed in custom image */ - tempf = new File(new URL("file:///" + System.getProperty("java.home") + "/lib/scenicview.jar").toURI()); + tempf = new File(System.getProperty("java.home") + "/lib/scenicview.jar"); } } catch (MalformedURLException | URISyntaxException e) { ExceptionLogger.submitException(e, "Attempting to get agent jar.");