This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Workspace is closed.

 
Anu pama Dande
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

i m gettin an exception

-> java.lang.IllegalStateException: Workspace is closed.

when i m trying to get the workspace using

-> IWorkspace workspace = ResourcesPlugin.getWorkspace();

i m writing a wizard which generates a project on the click of Finish button. And I have the code in the performFinish.

m i missing anything.. ?? the wizard exits after the exception.

any help is appreciated.

thx,
anu.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anu,
If the problem persists after restarting your machine, it may be a corrupt workspace. Do you get the error if you create a new workspace?
 
Anu pama Dande
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Here is the Solution"

Hi Jeanne and Others,

Actually i resolved the problem goin thru some eclipse forum where they mentioned to include the org.eclipse.core.resources library in the dependencies of the plugin instead of the Project -> Properties -> Build Path.

And it didn't threw the exception again.

Cheers,
Anu.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anu,
Thanks for sharing the solution with us.
 
swaraj bhat
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it mean that it is only possible to access the ResourcesPlugin through a Plug-in project and not through a Java Project?

I am getting the same exception currently. I am developing a Java application and trying to access another project in my workspace using



Is there an alternative to this solution?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic