To add Java 1.7 manually in preforences , we have to goto workspace
C:\Workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
and edit file org.eclipse.jdt.core.prefs and change below
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.source=1.7
And restart eclipse , then it will set Java compiler as 1.7
C:\Workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
and edit file org.eclipse.jdt.core.prefs and change below
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.source=1.7
And restart eclipse , then it will set Java compiler as 1.7
No comments:
Post a Comment