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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31079
    
163

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Workspace is closed.