
If all goes well with the verification process, you should get the message “jar ver-
ified.” Let’s modify our JAR file and then try to verify it again. It’s too easy just to
try deleting a file from the JAR, so let’s be a little sneakier and try to replace a class
file. First, open the JAR file by using zip and delete one of the classes. Make sure to
remember what the name of the class is. Now, use another file on your hard drive
and rename it to the name of the class you just deleted, and then add it to the JAR
file. Once again, we will verify the file by using jarsigner.This time, the output
throws an exception that mentions the name of the class that f