Libreoffice java_home path

Hello, have problem with java_home path Oracle linux 9 (without gui) installed via dnf install libreoffice when I run:
libreoffice I receive “Failed to open display” (obvious I don’t have gui)
My application use java 17 but requires libreoffice that use java 11 I would like to set different version of java for libreoffice, where can I find config file

Never seen such a message. Has nothing to do with Java, because Java is only needed for internal HSQLDB (Base), ReportBuilder and some wizards, also Base. You could run other parts of LO without any Java installation.

Not valid any more