CHECK MARK ' Execution Environment', and in the drop down menu, SELECT JavaSE-1.6 RE-START eclipse I'll confess, it is late and I'm hurrying, so changing every reference from 1.7 to 1.6 I have it working as I write this. SELECT the ' Classpath' tab and double check that it also is including Java 1.6 In the ' Project Explorer' tab, within your project, find the ' JRE System Library' amongst your project's folders. CLICK the ' JRE' tab and ensure it's Java 1.6. In the resulting dialog, 'Edit launch configuration properties'. While still in your project's properties dialog. RIGHT CLICK on your project folder in the workbench to open your projects properties, and double-check that Java 1.6 is good to go under the ' Java Compiler' menu and sub-menu's. CLICK on ' JavaSE-1.6', and make sure that your Java 1.6 Runtime you just set up is checked. SELECT Eclipse Preferences Java Installed JRE's Execution Environment. SELECT java 1.6 in Eclipse Preferences Java Installed JRE's. DRILL DOWN and SELECT /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/.įinish filling out what is needed, and then. CLICK ' Next.' In the 'JRE Definition dialog' that comes up. First, on your Mac, you should find the 'default Java from Apple' residing at: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java From the Eclipse menu: Eclipse Preferences Java Installed JRE's.ĬLICK ' Add.'.
If I accidentally deleted a step trying to format all this text, let me know. It looks like more work than it really is.
ECLIPSE FOR MAC JAVA 1.6 UPDATE
Update #1: System Preferences shows Java 7 as well. Modified eclipse.ini file so the -vm points to 7. Used override in project settings to make it 7. Modified Eclipse settings (Compiler) to 7. ( java -version shows the version as 7.) If I print it with Java, it prints 7. The system is an iMac with a 10.8.5 OS X. Ues a lower level of Java for the project, or run Eclipse using a newer Java version.' I spent two hours on this, so before I throw everything out, I thought I should ask you guys. No matter what I do, Eclipse keeps saying that ' Eclipse is running under 1.6, but this Java project has a 1.7 Java compliance level, so WindowBuilder will not be able to load classes from this project.