Move the location ware amp find java from root to some ware else

OS Name/Version: steamos

Product Name/Version: (Steam Deck)

Problem Description:

the steam deck has it root wiped every system update making root not a option to have java there i like to know ware the file that tell the amp that java is here for the auto find java

Steps to reproduce:

 * Step 1
 * Step 2
 * Step 3

Actions taken to resolve so far:

i have tried looking into the config that i can find looking for line "/usr/lib/jvm/" no luck