Java class file format : Java Glossary
home J words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
Java class file format
Compiled Java is typically distributed in a very compact format called Class files. It is the assembler code for a virtual stack-oriented Java-friendly CPU chip. Such chips do exist, but most of the time they are simulated with interpreters, JIT, Hotspots or AOT compilation on the target machines which have quite different architectures.

Class files are usually compressed and bundled into jar files.

Each class file is marked with a class file format version, which lets you know which JDK it was compiled for. At offset 6 in the class file is a big-endian short that gives the major version number. You can display for the classes is in a jar with JarCheck.

Class File Versions
JDK Major Version
6.0 50
5.0 49
1.4 48
1.3 47
1.2 46
1.1 45
1.0 44

Learning More


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 5,126. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/javaclassformat.html J:\mindprod\jgloss\javaclassformat.html