Skip to content

Commit

Permalink
another attempt at fixing the classpath issue on windows for tools.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Nov 4, 2013
1 parent 340de34 commit d5a537e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hawtio-app/src/main/java/io/hawt/app/App.java
Expand Up @@ -63,7 +63,12 @@ public static void main(String[] args) {
if (file.exists()) {
found = true;
//System.out.println("Found tools.jar at " + file);
main.setExtraClassPath("file://" + file.getCanonicalPath());
String canonicalPath = file.getCanonicalPath();
if (canonicalPath.contains(" ")) {
// lets wrap it in quotes to avoid issues with spaces in paths
canonicalPath = "\"" + canonicalPath + "\"";
}
main.setExtraClassPath(canonicalPath);
break;
}
}
Expand Down

0 comments on commit d5a537e

Please sign in to comment.