.class Java class
Other formats
| MIME type | application/x-java |
|---|---|
| Description | Java class |
| Category | Other formats |
Frequently asked questions
What is a .class file?
A .class file is a “Java class” (MIME type application/x-java).
How do I open a .class file?
With the program that created the file. On Linux, xdg-mime query default with the MIME type shows the default application, and xdg-open opens the file with it.
How can you tell a genuine .class file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.class shows the guessed type.
Which MIME type belongs to .class?
The MIME type is application/x-java. In the Apache web server: AddType application/x-java .class; in nginx: types { application/x-java class; }.