Reputation: 69
I am working on a large project with about 60 different Eclipse projects. I am looking for a method of setting the JVM for all projects at once. I know that I can right click on each one, go to Build Path, and manually change it to a certain execution environment (or JVM or workspace default), but it appears that this must be done one at a time.
Thanks.
Upvotes: 0
Views: 177
Reputation: 32924
I don't know of any way to do it via the UI, but you could use a File search+replace to modify the .classpath
files directly.
From the menu, toolbar, or keyboard shortcut open the File Search dialog. The text you want to search for, assuming your projects all use Execution Environment to specify their JRE libraries, is something like StandardVMType/JavaSE-1.7
(that's the text for the JavaSE-1.7 Execution Environment). Specify .classpath
as the file name pattern, and the Scope you want, then click Replace...
In the Replace Text Matches dialog, specify the new Execution Environment text, for example StandardVMType/JavaSE-1.8
. OK or Preview> to continue with the replacement.
Eclipse will re-build all the projects and once it completes they should all be referencing the new Execution Environment.
Upvotes: 1