Unwanted Java file deleted