I have to execute a java application on a remote server through command line.
I normally run the application like:
java -jar /home/user/files/simulator.jar -nogui:/home/user/files/my-sims/sim1.csc
this prints in my terminal a lot of compilation outputs, and during the simulation it prints the simulation time remaining every 1% increase of the simulation progress.
Obviously, during the simulation the terminal is unusable due to these outputs.
I tried to run the application with a & at the end to run it in background, like:
java -jar /home/user/files/simulator.jar -nogui:/home/user/files/my-sims/sim1.csc &
but the compilation outputs are printed anyway, so I cannot use the terminal to logout from the server.
How can I solve?
Thanks
java -jar ... 2>&/dev/null