get the size and filename of the jar file run from and SHA
i'm currently writing a client-server rpg game and i used some networking code to allow the program to download its own updates.
at the minute, whilst im testing it, i want to check the filesize of the jar file compared to the one on the server. how can i get the file size and name of the jar file being run from?
cant seem to find an easy way to get the jar file name, or the filesize.
also later on will be using SHA to compute the value of the jar file to check if has been altered, if anyone knows how to do this.