Eclipse – Set your JRE

Windows Open Eclipse Window -> Preferences -> Java -> Installed JREs Add Navigate to JRE location – C:\Program Files\Java\… Mac Open Eclipse Eclipse -> Preferences -> Java -> Installed JREs Add Navigate to JRE location – /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home Set Java Compliance Level Preferences -> Java -> Compiler Compiler Compliance Level  

Tomcat in Eclipse, set Java Version

Open Eclipse Window -> Show View -> Servers Double click your existing Tomcat Server click ‘Open launch configuration’ Classpath Bootstrap Entities Remove existing JRE if necessary (click Remove) Advanced -> Add Library -> OK JRE System Library ->  Alternate JRE -> Installed JREs Add -> Standard VM /Library/Java/Java Virtual Machines … path to jdk  

Installing Eclipse

cd http://www.eclipse.org/downloads/ Download 64 bit Eclipse IDE for Java EE Developers This will download the following file: eclipse-jee-juno-SR2-macosx-cocoa-x86_64.tar Copy the file to Applications and then double-click it to expand it This creates and Eclipse folder containing the Eclipse Application Drag the Eclipse Icon to the task bar for easy access Click the icon in the task bar to open…