What exactly does a jar file contain?

A JAR file is actually just a ZIP file. It can contain anything – usually it contains compiled Java code (*.class), but sometimes also Java sourcecode (*.java).

However, Java can be decompiled – in case the developer obfuscated his code you won’t get any useful class/function/variable names though.

Leave a Comment