You can't, at least not through
Java.
You will need to change the file permissions in Windows to disallow execution rights to all users, then set it to execute only for specific users you designate.
You will need administrator privileges for this on any workstation the operation has to be performed at.