# Can't run a plugin through terminal when jar is exported from IntelliJ

**URL:** <https://forums.visual-paradigm.com/t/cant-run-a-plugin-through-terminal-when-jar-is-exported-from-intellij/20778>\
**Category:** Plug-in & Open API\
**Created:** [May 3, 2024, 4:53pm UTC](https://forums.visual-paradigm.com/t/cant-run-a-plugin-through-terminal-when-jar-is-exported-from-intellij/20778 "2024-05-03T16:53:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JakeBurling](https://avatars.discourse-cdn.com/v2/letter/j/ce73a5/32.png) [@JakeBurling](https://forums.visual-paradigm.com/u/JakeBurling)\
**Post date:** [May 3, 2024, 4:53pm UTC](https://forums.visual-paradigm.com/t/cant-run-a-plugin-through-terminal-when-jar-is-exported-from-intellij/20778/1 "2024-05-03T16:53:50Z")

</div>

I have created a plugin that gathers information from projects/diagrams and logs them without the need to open Visual Paradigm. However, every time I try to execute the code using the _sh plugin.sh_ command\*. I am met with a ClassNotFoundException, despite my plugin.xml id & class variables matching the required sources. Using eclipse with the same code base works fine, so it seems either there is an issue with IntelliJ exporting jar plugins for VP or I am exporting jars from IntelliJ incorrectly. Any help would be useful?

- See [Running Plug-in without Starting Visual Paradigm](https://www.visual-paradigm.com/support/documents/vpuserguide/124/255/84449_runningplug-.html)

---

<div class="post-metadata">

**Author:** ![JakeBurling](https://avatars.discourse-cdn.com/v2/letter/j/ce73a5/32.png) [@JakeBurling](https://forums.visual-paradigm.com/u/JakeBurling)\
**Post date:** [May 8, 2024, 9:27am UTC](https://forums.visual-paradigm.com/t/cant-run-a-plugin-through-terminal-when-jar-is-exported-from-intellij/20778/2 "2024-05-08T09:27:52Z")

</div>

![Screenshot 2024-05-08 at 10.27.41](https://forums.visual-paradigm.com/uploads/default/original/2X/6/63cae46f1c3d53121dacc50a720aeae5410e7c73.png)

I have also included screenshots of the package structure and the plugin class.

This is the plugin.xml code:

```auto
<plugin id="com.sample.plugin" name="ProcessDiagram Plugin" description="ProcessDiagram Plugin" provider="ProcessDiagram" class="com.sample.plugin.refreshalldiagrams.Plugin">
	<runtime>
		<library path="lib/ProcessDiagram.jar" relativePath="true" />
	</runtime>
	<actionSets>
	</actionSets>
</plugin>

```
