AMP can't find system java on OpenSUSE 16.0

OS Name/Version: OpenSUSE Linux 16.0, kernel 6.12

Product Name/Version: AMP 2.8.0.0

Problem Description:

AMP cannot find any installed Java on OpenSUSE 16. I have installed openjdk 21 and openjdk 25 from default repos. Going to Configuration → Minecraft → Java and Memory, “Scan for Java Installs” button does nothing. Dropdown shows “usr 0”.

Attempting to start a Minecraft server anyway yields this in server log:

```vbnet
unexpected return from getopt: 63
  libalternatives (C) 2021  SUSE LLC
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
unexpected return from getopt: 63
    alts -h         --- this help screen
    alts -l[name]   --- list programs or just one with given name
    alts -t name    --- list executed target with a given name
    alts [-u] [-s] -n <program> [-p <alt_priority>]
       sets an override with a given priority as default
       if priority is not set, then resets to default by removing override
       -u -- user override, default for non-root users
       -s -- system override, default for root users
       -n -- program to override with a given priority alternative
```

Steps to reproduce:

  • Install AMP on OpenSUSE 16.0
  • Create a Minecraft instance
  • Attempt to set Java version

Actions taken to resolve so far:

I guess I’ll have to use Podman container until native gets fixed