8078519: Can't run SA tools from a non-images build

Reviewed-by: mchung, alanb, dsamersoff
This commit is contained in:
Staffan Larsen 2015-04-24 09:07:21 +02:00
parent 22611f6936
commit 07f28ae897

View File

@ -259,8 +259,7 @@ public class VM {
saProps = new Properties();
URL url = null;
try {
url = VM.class.getClassLoader().getResource("sa.properties");
saProps.load(new BufferedInputStream(url.openStream()));
saProps.load(VM.class.getResourceAsStream("/sa.properties"));
} catch (Exception e) {
System.err.println("Unable to load properties " +
(url == null ? "null" : url.toString()) +