Java class file format : Java Glossary

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 (Central Processing Unit) chip. Such chips do exist, but most of the time they are simulated with interpreters, JIT (Just In Time), Hotspots or AOT (Ahead Of Time) 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 (Java Development Kit) 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

available on the web at:

http://mindprod.com/jgloss/javaclassformat.html
  

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\javaclassformat.html
logo
Please email your , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email. If you want your message, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, especially when sending an ad-hominem attack, a rant composed mainly of obscenities or a death threat, please quote the offending passage and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. I can’t very well fix erroneous or ambiguous text if I can’t find it.
Blog
IP:[65.110.21.43]
Your face IP:[107.20.129.212]
You are visitor number 13,297.