Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java 1.5 Class Version

Reply
Thread Tools

Java 1.5 Class Version

 
 
soup_or_power@yahoo.com
Guest
Posts: n/a
 
      02-21-2006
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.

 
Reply With Quote
 
 
 
 
Ben Caradoc-Davies
Guest
Posts: n/a
 
      02-21-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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/vmspe...sFile.doc.html

--
Ben Caradoc-Davies <(E-Mail Removed)>
http://wintersun.org/
"Those who deny freedom to others deserve it not for themselves."
- Abraham Lincoln
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      02-24-2006
On 21 Feb 2006 14:00:39 -0800, "(E-Mail Removed)"
<(E-Mail Removed)> 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

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM



Advertisments