title: Set up Eclipse workspace automatically (import projects, target platform and preferences)
body: <p>I'm trying to set up an Eclipse workspace automatically. So far, I managed to import projects automatically using the Eclipse CDT project and the following command:</p>
  
  <pre><code>eclipsec.exe -nosplash -data workspace -application org.eclipse.cdt.managedbuilder.core.headlessbuild -importAll C:\project
  </code></pre>
  
  <p>After that command, I can start Eclipse and all projects in <code>C:\project</code> are imported to my workspace. </p>
  
  <p><strong>But how can I import a target platform automatically? And how can I import Eclipse preferences automatically?</strong></p>
  
  <p>I'm unable to find a documentation about the command line arguments of Eclipse CDT. And I it feels strange to install a complete C/C++ tool chain just to import projects (of a Java project). <strong>Are there any alternatives?</strong></p>
  
  <p>Thanks and best regards,
  Thomas</p>