equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
47 } |
47 } |
48 |
48 |
49 private static List<Archive> init() { |
49 private static List<Archive> init() { |
50 List<Archive> result = new ArrayList<Archive>(); |
50 List<Archive> result = new ArrayList<Archive>(); |
51 String javaHome = System.getProperty("java.home"); |
51 String javaHome = System.getProperty("java.home"); |
52 List<File> files = new ArrayList<File>(); |
|
53 File jre = new File(javaHome, "jre"); |
52 File jre = new File(javaHome, "jre"); |
54 File lib = new File(javaHome, "lib"); |
53 File lib = new File(javaHome, "lib"); |
55 |
54 |
56 try { |
55 try { |
57 if (jre.exists() && jre.isDirectory()) { |
56 if (jre.exists() && jre.isDirectory()) { |