I know the answer to this question may be screens, but it doesn't seem to be working for me. I've tried creating a new screen session and running it there, then switching back to my main one. However, when I close that terminal completely, all the screens disappear, yet the server is still running. I can no longer get to the jar file while it's running, forcing me to restart the server in order to kill the jar. I've tried kill and pkill after finding the PID of the jar using the top command, but that doesn't work. Am I doing something wrong with screens or is there something else I'm missing? Thanks for any responses.
TL;DR I need a way to run a jar so I can access it later on another termainal session