Installed and functional JDK declared 'defective'

Hello,

I have JDK 19.0.2 installed on a MacbookPro, 10.13 ‘High Sierra’. One LibreOffice package (version 7.4.3.2) is installed for all users. Two users with separate accounts on the Mac access LibreOffice, both users have administrator privileges.

User A: Can use LO without any hassles.
User B: LO throws a ‘JRE is defective’ error and remains unusable.

File access rights for the JDK path is the same in both cases.
How could that be? What is wrong with user B?

Kind regards
Sculla

A typical error is to assume admin is allowed everything. An admin can usually get all rights he needs, but some he has to ask for.
.
My guess would be: The admin who did the install “owns” the folders of the jdk, the other may have less rights…
.
Also I know from other systems the question during install: Only for current user or for all users.

Installations of LO and JDK were performed for ‘all users’.

The procedere was as follows:
LO was recently updated to 7.4.3.2 and worked without any issues for both users. User A then removed all java installations and traces thereof (but without touching anything in /usr/bin).
He set a symlink to the Apple Java part of the system (as described here):

$ sudo ln -s 
/System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin
 "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"

User B then installed the JDK 19.0.2. And it is user B, who now cannot use LO.

I think this is not an LO-only problem, but has to do with some underlying differences in user account configuration. I will ask this question elsewhere, too, but would be glad if anyone has any ideas what could be the cause for this behavior.

Kind regards
Sculla