title: How to make a Java program run in the background?
body: <p>I've looked at tons of different StackOverflow questions, and articles on other websites, but none of them have exactly what I'm looking for.</p>
  
  <p>What I'm attempting to do:</p>
  
  <p>I have a program that needs to sleep for a while, and then check to make sure that a program is still running, then sleep again. I've gotten that part done all fine and dandy, but I'm running into a problem making it run in the background. I'm trying to get it to run with no system tray, no command prompt window, just a process. Is there any way I can do this? It really annoys me having to have a command prompt window open 24/7 for a program as simple as this one, and if anyone could help it would be great!</p>
  
  <p>(Also, note that I'm not talking about compiling from command line, I'm saying after you open the .exe version of the java program, how you could make it open the exe without a command prompt window or GUI)</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: Yes, I am running Windows, and this program will be run solely on Windows OS'.</p>