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.

I use Flatpak installation of LibreOffice, and I don’t intend to install it through deb packages (I could, but it isn’t as easy as with Flatpak, and it doesn’t update automatically when new releases are made available…). The current issue is one needed package, package ‘libreoffice-java-common’, isn’t available at Flatpak repositories. I have already installed that package from my distro Repos, but it seems it’s not recognised by Flatpak’s LibreOffice installation, which is kept ‘isolated’ into their own directory with all dependencies…

You describe perfectly how flatpak or snap is supposed to work…

Yeah… And, any tip about how to solve the current issue? I need the package ‘libreoffice-java-common’ working together my Flatpak install; re-installing LibreOffice from deb files isn’t a valid solution either to me.

I would use the invalid solution, so there is no issue.
.
You could try two ways: The correct approach would be to provide the package INSIDE the flatpack. As I don’t know, if a “install inside package” (maybe via a changed root) is possible this may require to re-build the flatpack.
In simple cases, where just the access to folders is the problem you might find a way changing the rights of the flatpack. I guess the tool is named Flatseal…