diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-01 14:50:35 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-01-01 14:50:50 -0800 |
commit | cc69a9907ac9878db3750aa14ffedb28626455da (patch) | |
tree | 31a6802d8581439dfd5e463ad71a8cf005bf7c7d /src/main/java/org/traccar/WindowsService.java | |
parent | 5d0bacea7ebdd169d55c7da0f7d6f3ae1ecf372f (diff) | |
download | trackermap-server-cc69a9907ac9878db3750aa14ffedb28626455da.tar.gz trackermap-server-cc69a9907ac9878db3750aa14ffedb28626455da.tar.bz2 trackermap-server-cc69a9907ac9878db3750aa14ffedb28626455da.zip |
Quote binary path
Diffstat (limited to 'src/main/java/org/traccar/WindowsService.java')
-rw-r--r-- | src/main/java/org/traccar/WindowsService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/WindowsService.java b/src/main/java/org/traccar/WindowsService.java index 831cd3ebc..f233337a7 100644 --- a/src/main/java/org/traccar/WindowsService.java +++ b/src/main/java/org/traccar/WindowsService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2018 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ public abstract class WindowsService { String account, String password, String config) throws URISyntaxException { String javaHome = System.getProperty("java.home"); - String javaBinary = javaHome + "\\bin\\java.exe"; + String javaBinary = "\"" + javaHome + "\\bin\\java.exe\""; File jar = new File(WindowsService.class.getProtectionDomain().getCodeSource().getLocation().toURI()); String command = javaBinary |