Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Java 1.5 Class Version

Thread view: 
soup_or_power@yahoo.com - 21 Feb 2006 22:00 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.