how to prevent (programmatically) a java application from starting if it's not in a predefined directory?
Example:
I have application.jar and I want to make it runnable only if it's located in "C:\runnable" directory else the application will exit.
any ideas?