Can someone please tell me the version of class files generated from
JVM 1.5. In the class file I see the first 8 bytes in hex
cafebabe0003002d. Does this mean version 48?
Thanks for your help.
Ben Caradoc-Davies - 21 Feb 2006 22:44 GMT
> Can someone please tell me the version of class files generated from
> JVM 1.5.
49.0
> In the class file I see the first 8 bytes in hex
> cafebabe0003002d. Does this mean version 48?
0x3 = 3, and 0x2d = 45, so this class file is version 45.3 (compatible
with JDK 1.0.2).
See:
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html

Signature
Ben Caradoc-Davies <ben@wintersun.org>
http://wintersun.org/
"Those who deny freedom to others deserve it not for themselves."
- Abraham Lincoln
Roedy Green - 24 Feb 2006 20:25 GMT
On 21 Feb 2006 14:00:39 -0800, "soup_or_power@yahoo.com"
<soup_or_power@yahoo.com> wrote, quoted or indirectly quoted someone
who said :
>Can someone please tell me the version of class files generated from
>JVM 1.5. In the class file I see the first 8 bytes in hex
>cafebabe0003002d. Does this mean version 48?
Either use JarCheck or look inside at the source code. It has a table
of JVM version vs internal version number.
see http://mindprod.com/products1.html#JARCHECK

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.