title: How to detect if the program run in JAR or not?
body: <p>How can I detect if the program runs in JAR or not?</p>
  
  <p>I'm asking that, because of the loading resources like pictures, templates etc. Inside a JAR file it will be different.</p>
  
  <p>Thank you in advance.</p>