Thanks but the file is exactly the same, i copied and pasted the two line directly to avoid any error.
what I did is :
1-Extract the Java tar file in the PokeMMO folder in the desktop mode
2-Renamed it to java (so now i have the java folder next to my roms folder , and other PokeMMO folders)
edited the sh file as mentioned
3-double clicking on the sh file and execute ... nothing happen
4-I tried to open the sh file in terminal and i have the message "error : could not find or load main class com.pokemmu.client.Client caused by Java.lang.ClassNotFoundException: com.pokeemu.client.Client "
Sorry I could not copy the file from my steamdeck to share it as i did not have any usb drive near me yesteday.