mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-22 21:59:52 +00:00
8078519: Can't run SA tools from a non-images build
Reviewed-by: mchung, alanb, dsamersoff
This commit is contained in:
parent
22611f6936
commit
07f28ae897
@ -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()) +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user