| 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.
|
|
|