title: Eclipse- Workspace closed error
body: <p>I want to get the path of my workspace in Eclipse.
  I wrote the following code:</p>
  
  <pre><code> IWorkspace myWorkspace = ResourcesPlugin.getWorkspace();
      System.out.println(myWorkspace.getRoot().getFullPath());
  </code></pre>
  
  <p>The problem is that I get a workspace closed exception. How can I solve this ?</p>