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 67d490c commit 871e6a6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions hawtio-app/src/main/java/io/hawt/app/App.java
Expand Up @@ -62,13 +62,8 @@ public static void main(String[] args) {
File file = new File(path, "lib/tools.jar");
if (file.exists()) {
found = true;
//System.out.println("Found tools.jar at " + file);
String canonicalPath = file.getCanonicalPath();
if (canonicalPath.contains(" ")) {
// lets wrap it in quotes to avoid issues with spaces in paths
canonicalPath = "\"" + canonicalPath + "\"";
}
main.setExtraClassPath(canonicalPath);
String url = file.toURI().toURL().toString();
main.setExtraClassPath(url);
break;
}
}
Expand Down

0 comments on commit 871e6a6

Please sign in to comment.