sdk jar can't find the office executable

I tried the following example in Eclipse and it works. I went through and configured setsdkenv_unix.sh.
https://api.libreoffice.org/examples/java/Text/SWriter.java

Yet, when I export the program as jar file and try to run the jar, it says that it can’t find the executable. What gives?

[brian@localhost pkg]$ java -jar simpleSwriter.jar

com.sun.star.comp.helper.BootstrapException: no office executable found!
	at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:338)
	at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:302)
	at bookmarks.SWriter.main(SWriter.java:27)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)

Brian

Did you source setsdkenv_unix.sh (. ./setsdkenv_unix.sh) before you executed java -jar simpleSwriter.jar ?

Yes. I can run the class directly from the command line too. The SWriter class is in the bookmarks package.

[brian@localhost bin]$ java bookmarks.SWriter

Connected to a running office ...
Opening an empty Writer document

Yet, if I try to run the executable jar, no go

[brian@localhost pkg]$ java -jar simpleSwriter.jar

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

Does anybody have a runnable jar that runs?