How to get names of classes inside a jar file?

How to get names of classes inside a jar file?