This content has been marked as final. Show 3 replies
MariusGav wrote:Do you mean just like java web start? Perhaps you should look at how this works and either use it or learn from it.
I'm making a feature for downloading the latest version of the application and then replacing the old version with the new one.
I simply want to know what is the filename of the running fileIs that the class file, the jar file or the source file? Files don't run. Threads run code in class methods.
If you are wondering why do I want to know this, then here you are:You can try
URL urlForThisClass = getClass().getProtectionDomain().getCodeSource().getLocation();