Skip to content

Commit

Permalink
Export: Fixed jar location lookup on Windows, closes highcharts#2869
Browse files Browse the repository at this point in the history
  • Loading branch information
gvaartjes committed Feb 7, 2014
1 parent 49e86b6 commit 1392477
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void setMaxTimeout(int maxTimeout) {

@PostConstruct
public void afterBeanInit() {
String jarLocation = getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
String jarLocation = getClass().getProtectionDomain().getCodeSource().getLocation().getPath().split("!")[0].replace("file:/", "");
try {
jarLocation = URLDecoder.decode(jarLocation, "utf-8");
// get filesystem depend path
Expand Down

0 comments on commit 1392477

Please sign in to comment.