java.lang.IllegalStateException: Workspace is closed.
This post belongs to Eclipse JDT Tutorial Series. This error message starts the whole JDT ASTParser tutorial series. Exception in thread “main” java.lang.IllegalStateException: Workspace is closed. at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:340) at Main.main(Main.java:20) In brief, this is caused by simply adding dependent jar files to regular java project. To use JDT, you need to have the program running … Read more