javaeclipsesettingsproject

Change compiler version for a large number of projects in Eclipse


I have over 130 projects in Eclipse, some of them are using java compiler 1.5 and some of them are using 1.6. Is there anyway I can change all of them to 1.6 without going through each of them individually? I tried selecting all projects from Project Explorer, but then there is no Property or Build Path available in the menu.


Solution

  • Here you go...

    You could write a script like this to find/replace org.eclipse.jdt.core.compiler.source=<source-version> to desired value in <project>\.settings\org.eclipse.jdt.core.prefs