findRtJar - support Oracle JDK 1.7 Mac OS X
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user