2013年9月4日星期三

This returns the absolute root path way system who told me indetail about the next

public static final String getRootPath () {
String path = Constants.class.getResource ("/"). toString ();
return path.substring (6, path.length ()). replace ("% 20", "");
}

What does it mean when two here , ah, there % 20
------ Solution ------------------------ --------------------
obtain class where the file path , the path interception hard ,% 20 is a space of the display , so you want to restore .
------ For reference only -------------------------------------- -
Oh, thanks , I see

没有评论:

发表评论