Change .eclipse folder in Linux
<p>How can I change the .eclipse folder in Linux? I tried adding this line:</p>

<pre><code>-Dosgi.configuration.area=/directory/directory1/eclipse/.eclipse
</code></pre>

<p>at the top of eclipse.ini but it doesn't work. I've also tried adding it to various other places in the eclipse.ini but still no luck.</p>

<h2>Edit</h2>

<p>I have added this line:</p>

<pre><code>-Dosgi.configuration.area=file:/directory/directory1/eclipse/.eclipse
</code></pre>

<p>immediately below -vmargs. When Eclipse starts, it now reads from the correct .eclipse location and if .eclipse does not exist there, it creates it. Unfortunately, after Eclipse has loaded, another .eclipse folder is created in my home folder and Eclipse then continues to read from that folder. I suspect that my eclipse.ini file is now correct but there is another file I need to change.</p>