Hello World Plugin - ClassFormatError : StackMapTable format error: bad class index
Hello,
I am using Intellij 9.0.3 Ultimate Edition to develop my first intellij plugin which just shows up a item in the Windows menu & clicking it displays "Hello World". I followed the steps mentioned in the tutorial here. When I run the plugin I get the below error
Exception in thread "main" java.lang.ClassFormatError: StackMapTable format error: bad class index
at com.intellij.openapi.application.PathManager.isIdeaHome(PathManager.java:99)
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:81)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:309)
at com.intellij.ide.ClassloaderUtil.initClassloader(ClassloaderUtil.java:88)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:35)
at com.intellij.idea.Main.main(Main.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
Has anyone faced such an issue ? I think my Intellij Plugin SDK configuration is an issue but I am not able to figure out. I have added three jar files named "openapi.jar, annotations.jar and rt.jar" in the SDK's classpath.
Any help would be appreciated.
Thanks in advance.
Please sign in to leave a comment.
Hello Amit,
Your IntelliJ IDEA installation seems to be corrupt. Please try reinstalling.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks for the reply. The issue is with the jdk version I was using. I was compiling and running with "jdk1.6.0_ea". After upgrading to jdk 1.6.21 the below issue got resolved. Thanks to Mihai-Claudiu Toader who helped me to resolve the issue.
Regards,
Amit.