Hi All,
I’m new to plugin dev. I’ve patiently followed the setup according to the lastest documentation, but I’ve stumbled on this problem.
I’m running IntelliJ IDEA 2025.2.4 (Ultimate Edition)
I installed the Plugin DevKit from plugins.
I created a new IDE Plugin project.
I setup a ExecutionListener, works ok.
I wanted to access
ApplicationConfiguration.JavaApplicationCommandLineState
so I uncommented
bundledPlugin("com.intellij.java")
It now compiles okay but when I “Run IDE with Plugin” task I’m getting runtime class not found:
Caused by: java.lang.ClassNotFoundException: com.intellij.execution.application.ApplicationConfiguration$JavaApplicationCommandLineState
PluginClassLoader(plugin=PluginDescriptor(name=Platformplugin, id=com.nn.platformplugin, descriptorPath=plugin.xml, path=~/Documents/code/platformplugin/build/idea-sandbox/IC-2025.1.4.1/plugins/platformplugin, version=1.0-SNAPSHOT, package=null, isBundled=false), packagePrefix=null, state=active, parents=PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.impl, descriptorPath=intellij.platform.vcs.impl.xml, path=~/.gradle/caches/8.14.3/transforms/d319a496fba27bdbc1ebeb888e88337d/transformed/ideaIC-2025.1.4.1/lib, version=251.27812.49, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.log.impl, descriptorPath=intellij.platform.vcs.log.impl.xml, path=~/.gradle/caches/8.14.3/transforms/d319a496fba27bdbc1ebeb888e88337d/transformed/ideaIC-2025.1.4.1/lib, version=251.27812.49, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.dvcs.impl, descriptorPath=intellij.platform.vcs.dvcs.impl.xml, path=~/.gradle/caches/8.14.3/transforms/d319a496fba27bdbc1ebeb888e88337d/transformed/ideaIC-2025.1.4.1/lib, version=251.27812.49, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.collaborationTools, descriptorPath=intellij.platform.collaborationTools.xml, path=~/.gradle/caches/8.14.3/transforms/d319a496fba27bdbc1ebeb888e88337d/transformed/ideaIC-2025.1.4.1/lib, version=251.27812.49, package=null, isBundled=true), )
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:157)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
The java jars are not in the build directory.
I’ve put the code is here so it should be reproducable:
Thanks,
Nic.