Can you tell on runtime if you're running java from within a jar?

Posted by Dikla on Stack Overflow See other posts from Stack Overflow or by Dikla
Published on 2009-01-27T07:32:50Z Indexed on 2010/06/18 11:53 UTC
Read the original article Hit count: 166

Filed under:
|

Hi,

I have an application that some of my users run from Eclipse, and others run it by using a jar file.

I want some actions to be done when running from within the jar, but I don't want them to be done when running from Eclipse.

Is there a way to know on runtime whether the current application is running from within a jar?

Thanks!

Dikla

© Stack Overflow or respective owner

Related posts about java

Related posts about jar