src/java.base/share/classes/sun/net/NetProperties.java
Print this page
*** 60,70 ****
String fname = System.getProperty("java.home");
if (fname == null) {
throw new Error("Can't find java.home ??");
}
try {
! File f = new File(fname, "lib");
f = new File(f, "net.properties");
fname = f.getCanonicalPath();
InputStream in = new FileInputStream(fname);
BufferedInputStream bin = new BufferedInputStream(in);
props.load(bin);
--- 60,70 ----
String fname = System.getProperty("java.home");
if (fname == null) {
throw new Error("Can't find java.home ??");
}
try {
! File f = new File(fname, "conf");
f = new File(f, "net.properties");
fname = f.getCanonicalPath();
InputStream in = new FileInputStream(fname);
BufferedInputStream bin = new BufferedInputStream(in);
props.load(bin);