It is often necessary to run a script/process in the background that continues to run when you logout. In Unix/Linux systems we make use of the nohup command e.g.
nohup java [java_class] &
The "&" indicates that the process should run in the background.