aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Workspace is closed. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Workspace is closed." Watch "Workspace is closed." New topic
Author

Workspace is closed.

Anu pama Dande
Greenhorn

Joined: Mar 06, 2006
Posts: 12
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 23621

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
Anu pama Dande
Greenhorn

Joined: Mar 06, 2006
Posts: 12
"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
internet detective
Marshal

Joined: May 26, 2003
Posts: 23621

Anu,
Thanks for sharing the solution with us.
swaraj bhat
Greenhorn

Joined: Jun 02, 2011
Posts: 2
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?
 
 
subject: Workspace is closed.
 
Threads others viewed
Invalid project contents directory (eclipse warning)
This needs a better caption.
DUMP SIGNAL EXCEPTION 11
MANIFEST.MF in eclipse
WA #1.....word association
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com