--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/Versions.java 2019-03-28 07:36:59.696562654 +0100 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/Versions.java 2019-03-28 07:36:59.308560061 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,11 +32,13 @@ import java.util.HashMap; import java.util.Map; +import jdk.vm.ci.services.Services; + /** Avoid using directly. Only public for the needs of unit testing. */ public final class Versions { static final Versions VERSIONS; static { - String home = System.getProperty("java.home"); + String home = Services.getSavedProperties().get("java.home"); VERSIONS = new Versions(home == null ? null : new File(home).toPath()); }