Skip to content

Commit 1166375

Browse files
committed
Update PlatformFactory.java
1 parent c3ce336 commit 1166375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drjava/src/edu/rice/cs/drjava/platform/PlatformFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ private static PlatformSupport getPlatformSupport() {
4646

4747
// Get OS name string; we expect one of "windows xp", "mac os x", etc.
4848
String os = System.getProperty("os.name").toLowerCase();
49+
String java_version = System.getProperty("java.version").toLowerCase();
4950

50-
if (os.startsWith("mac os x")) return MacPlatform.ONLY;
51+
if (os.startsWith("mac os x") && java_version.startsWith("1.")) return MacPlatform.ONLY;
52+
else if (os.startsWith("mac os x")) return MacPlatform.ONLY;
5153
else if (os.startsWith("windows")) return WindowsPlatform.ONLY;
5254
else return DefaultPlatform.ONLY;
5355
}

0 commit comments

Comments
 (0)