langtools/test/tools/javac/processing/options/testPrintProcessorInfo/TestWithXstdout.java
changeset 27579 d1a63c99cdd5
parent 14963 974d4423c999
child 30730 d3ce7619db2c
equal deleted inserted replaced
27578:d61af14a5cf7 27579:d1a63c99cdd5
    54             throw new Exception("differences found");
    54             throw new Exception("differences found");
    55     }
    55     }
    56 
    56 
    57     static void run_javac(String... args) throws IOException, InterruptedException {
    57     static void run_javac(String... args) throws IOException, InterruptedException {
    58         File javaHome = new File(System.getProperty("java.home"));
    58         File javaHome = new File(System.getProperty("java.home"));
    59         if (javaHome.getName().equals("jre"))
       
    60             javaHome = javaHome.getParentFile();
       
    61         File javac = new File(new File(javaHome, "bin"), "javac");
    59         File javac = new File(new File(javaHome, "bin"), "javac");
    62 
    60 
    63         List<String> opts = new ArrayList<>();
    61         List<String> opts = new ArrayList<>();
    64         opts.add(javac.getPath());
    62         opts.add(javac.getPath());
    65 
    63