jfor.org

Other

What is a .class file?

A .class file is a Java Class File. This one is a specialist format without an obvious everyday home.

How to open a .class file

  • The program that created it is by far the most reliable way to open it.
  • On Windows, use a hex viewer or the free TrID tool to identify what the file really is.
  • On Mac or Linux, running `file yourfile` in the terminal identifies most formats instantly.

The registry records this extension against Java Class File, so software from that family is the most likely match.

How to convert a .class file

  • Identify the file first, then look for an export or Save As option in whatever program can read it.

The technical record

For archivists, developers and the merely curious: these are the PRONOM registry entries for .class.

Format nameVersionMIME typePUID
Java Class Fileโ€”โ€”x-fmt/415

Got another one?