findRtJar - support Oracle JDK 1.7 Mac OS X

This commit is contained in:
develar
2013-02-21 12:46:54 +04:00
committed by Nikolay Krasko
parent bb9c65de4a
commit bcbb87783c
@@ -143,7 +143,7 @@ public class PathUtil {
}
private static File findRtJar(String javaHome) {
if (SystemInfo.isMac) {
if (SystemInfo.isMac && !SystemInfo.isJavaVersionAtLeast("1.7")) {
File classesJar = new File(new File(javaHome).getParentFile(), "Classes/classes.jar");
if (classesJar.exists()) {
return classesJar;