com.sun.star.comp.helper.BootstrapException: no office executable found!

Created a executable jar of “DocumentHandling” example and tried to execute the same and got the error like “com.sun.star.comp.helper.BootstrapException: no office executable found!”

But please note that when I’m executing the same code using eclipse IDE then the program is executing without any issues.

I am having the exact same issue.
No solution yet

I found a solution for the problem in GitHub: LibreOfficeCSVGenerator/src/ooo/connector at master · le0pard/LibreOfficeCSVGenerator · GitHub
use ooo.connector, to get the XComponentContext and continue from there