trouble exporting plugin -- now showing up in menus

After successfully debugging my plugin, I tried to publish it.

I followed the instructions here:

and made a jar file, no problem.

Then I want to IDEA settings and added the plugin using "Install Plugin from Disk" and restarted IDEA.

But once, relaunched, my plugin was not listed in the Tools menu where I expected it to be (and where it was when testing in debug mode).  Any suggestions how to properly export my plugin?


Is the plugin listed in the plugin manager (Settings | Plugins)?


Yes, the plugin is listed there after restarting IDEA.  It's checkbox is also selected.

Here is relevant part of the plugin.xml:

 <!-- Add your actions here -->
 <action id="generateP5Mini" text="ProcessingJS Minifier">
 <!--<add-to-group group-id="GenerateGroup" anchor="last"/>-->
 <add-to-group group-id="ToolsMenu" relative-to-action="GenerateJavadoc" anchor="after"/>

Note, I do have the Generate Javadoc in my Tools menu, so my menu should have somewhere to anchor after.

okay, starting up IDEA today, I get an error I've not seen before.

org/pleaseWork/p5minimizer/P5Mini : Unsupported major.minor version 51.0 [Plugin: org. pleaseWork.p5Minimizer]: org/pleaseWork/p5minimizer/P5Mini : Unsupported major.minor version 51.0 [Plugin: org. pleaseWork.p5Minimizer]
com.intellij.diagnostic.PluginException: org/pleaseWork/p5minimizer/P5Mini : Unsupported major.minor version 51.0 [Plugin: org. pleaseWork.p5Minimizer]
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getAction(
 at com.intellij.openapi.actionSystem.DefaultActionGroup.unstub(
 at com.intellij.openapi.actionSystem.DefaultActionGroup.getChildren(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$5.compute(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$5.compute(
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.preloadActionGroup(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.d(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$200(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$
 at com.intellij.openapi.application.impl.ApplicationImpl$
 at java.util.concurrent.Executors$
 at java.util.concurrent.FutureTask$Sync.innerRun(
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
 at java.util.concurrent.ThreadPoolExecutor$
 at com.intellij.openapi.application.impl.ApplicationImpl$1$
Caused by: java.lang.UnsupportedClassVersionError: org/pleaseWork/p5minimizer/P5Mini : Unsupported major.minor version 51.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(
 at java.lang.ClassLoader.defineClass(
 at java.lang.ClassLoader.defineClass(
 at com.intellij.util.lang.UrlClassLoader._defineClass(
 at com.intellij.util.lang.UrlClassLoader.defineClass(
 at com.intellij.util.lang.UrlClassLoader._findClass(
 at java.lang.ClassLoader.loadClass(
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(
 at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(
 ... 21 more


you should use JDK 1.6 for the plugin SDK


Switching the project's SDK to 1.6 (from built in IDEA) results in an error when I try to prepare the plugin for deployment.  (it also marks all of the PSI classes as unknown in my editor).

Then I rememebered to switch to the 1.6 version of the built in IDEA sdk.  Cool, that worked.

I rebuilt my plugin and then reinstalled it.

Haven't seen the errors again. :- )

Still not able to access my plugin either :- (


I would have liked to have tested it worked first, but, sure okay.

I will have it up by the end of the day.  Thanks.


Here we go (warning, first plugin and lots of mid-learning going on here):

Any suggestions as to how to how make the plugin showup in the Tool menu?  I can make it work when in Debug mode, but not when I export the plugin as a jar, and then add the plugin to IntelliJ, and then restart (and after double checking the plugin is still listed and selected in the plugins list).



Works for me.

Actually first time I installed it, I did not see it, but maybe IJ did not restart. Then I installed it again, restarted and it worked :)


Thanks MEO,

Unfortunately, no matter how many times I uninstall, re-install, reboot over and over... nothing.  Hmm.  Unsure what to do. :-/


look to .IntelliJIdea12\config\plugins  and delete the plugin if it is there.


Got it to work.  Not sure what was going on there.  

Thank you!


Please sign in to leave a comment.