class file for com.intellij.openapi.Disposable not found
I am trying to create a plug-in in IntelliJ 8.0 and I am getting this error on compile:
Error:Error:line (41)cannot access com.intellij.openapi.Disposable
class file for com.intellij.openapi.Disposable not found
The code that is causing the problem is the last line of:
public void projectOpened() {
ToolWindowManager twm = ToolWindowManager.getInstance(project);
ToolWindow toolWindow = twm.registerToolWindow(JDashboard.WINDOW_ID, true, ToolWindowAnchor.LEFT);
JDashboard dashboard = new JDashboard();
Content content = ContentFactory.SERVICE.getInstance().createContent(dashboard, "", false);
toolWindow.getContentManager().addContent(content);
}
Nothing is red in IntelliJ, any idea what I am doing wrong?
Please sign in to leave a comment.
When I look in the in INTELLIJ_8_INSTALL_DIR\lib\openai.jar, I only see ComponentDisposable.class. The openapi.jar in INTELLIJ_7.0.4_INSTALL_DIR\lib does have the Disposable.class file. Did it get left out of the openapi jar in the 8.0 release?
Hello Nathan,
Please make sure that util.jar is in the classpath of your IntelliJ IDEA SDK.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I removed my IntelliJ JDK and recreated it and it works now. It may have been a problem with how it converted my intellij 7 settings over to intellij 8.