File Juicer
File Juicer for macOS
Overview of Formats

Search & Extract

Images

jpg jpeg 2000 gif png pdf wmf emf tiff eps pict bmp

Video

mov mpeg avi wmv

Sound

mp3 wav System 7 au aiff

Text

ascii rtf html

From:

avi cab cache chm dmg doc emlx exe ithmb m4p mht mp3 pdf pps ppt raw swf wps xls zip and other formats

.class Java files

Are the Java code usually packaged inside jar files and used in Applets and Java Applications.

You can follow the tutorial from Sun: The Java Tutorial on how to make java applications.

.class files are bytecodes, and you can partially decompile them with a tool called mocha, also on macOS. This require some use of the command line.