WritingTool extension not working at LibreOffice Flatpak install - lack of 'libreoffice-java-common'?

I have just installed the latest version of LibreOffice and the newest version of WritingTool extension (meant as an offline grammar and orthographic checker, instead of using LanguageTool online feature).
Although with WritingTool extension active and the buttons appearing in the toolbar and the file bar, clicking on any buttons do nothing. The dependency of Java active seems to make the extension slow to respond, and prone to crashes… My LibreOffice install specifications are:

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Flatpak
Calc: threaded

I have the package ‘libreoffice-java-common’ installed from the repositories of my Linux distro (MX Linux 23.6), but apparently LibreOffice Flatpak install doesn’t ‘recognise’ it… And, unfortunately, libreoffice-java-common isn’t available at Flatpak repositories (neither flathub nor flathub-verified …)

Supposing that, in my case, the trouble is due to absence / non-recognition of package libreoffice-java-common, any tip on how to do it to make it work?…

LibreOffice needs Java for some functions such as the base report generator and especially for extensions with Java code.
In Windows, Java’s installation / connection seems to work without problems.
In Linux and Mac this is not so easy because it depends on how the program is compilated by the distribution, and the necessary permits.

  • If your distribution is based on Debian the recommendation is to install the *.deb packages of the official LibreOffice website and possibly the Open-java package of your distribution.
  • Some other linux portable version is appImage
  • And you can explore the issues of the WritingTool extensión for recomendations
  1. Download Donate to LibreOffice | LibreOffice - Free and private office suite - Based on OpenOffice - Compatible with Microsoft
  2. Open a terminal
  3. cd ~/Downloads
  4. tar -xzvf LibreOffice_25.2.3_Linux_x86-64_deb.tar.gz
  5. cd LibreOffice_25.2.3_Linux_x86-64_deb/DEBS
  6. sudo dpkg -i *.deb

Download the Brazilian user interface https://download.documentfoundation.org/libreoffice/stable/25.2.3/deb/x86_64/LibreOffice_25.2.3_Linux_x86-64_deb_langpack_pt-BR.tar.gz and repeat steps 4, 5 and 6 with that package.