Libreoffice extension can't use java framework

I used java to write a libreoffice extension. It works. When I start using “soffice.bin” in the shell, java option can be set and take effect. But it does not work. When I double-click on the ods file from the eclipse IDE tool, the configuration of the java option does not work.
Has anyone encountered this problem?

I’m not sure I understand. It works, or it doesn’t work, under what circumstances exactly? How do you double-click on an ods file from within Eclipse? What java option configuration are you referring to - something under Tools → Options → LibreOffice → Advanced perhaps, or something in Eclipse? Please also specify the version of LO and Eclipse and your OS.

In the past have used Eclipse to create java extensions, so it should work if everything is set up correctly.