# Execute java methods without JavaCommandLine class

**URL:** <https://platform.jetbrains.com/t/execute-java-methods-without-javacommandline-class/2058>\
**Category:** IntelliJ Platform\
**Tags:** plugin-development\
**Created:** [June 19, 2025, 7:53pm UTC](https://platform.jetbrains.com/t/execute-java-methods-without-javacommandline-class/2058 "2025-06-19T19:53:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![igolyudov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/igolyudov/32/1535_2.png) [@igolyudov](https://platform.jetbrains.com/u/igolyudov)\
**Post date:** [June 19, 2025, 7:53pm UTC](https://platform.jetbrains.com/t/execute-java-methods-without-javacommandline-class/2058/1 "2025-06-19T19:53:41Z")

</div>

Hi! I am creating a plugin for IDEA that requires calling a method from a java class and reading the response from this method. How can I implement this without calling an external program, i.e. without using GeneralCommandLine and without JavaCommandLine, which requires specifying the path to the jdk? Since I am already inside JVM, I would like to simply transfer execution to a separate thread, for example via new Thread. Is this even possible?
