This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Read class of Major Version 48 and more Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Read class of Major Version 48 and more" Watch "Read class of Major Version 48 and more" New topic
Author

Read class of Major Version 48 and more

prasad Venkat
Ranch Hand

Joined: Oct 17, 2006
Posts: 32
my orogram is able to read class file of Major version less then 48 but not more then 48 where my program runs on jdk1.4 but now i want to read class with major version 48 and more how is it possible
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
Run the byte code in a jvm which supports this version of classfile.


Rahul Bhattacharjee
LinkedIn - Blog
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
I got the following

Java 1.1 platform: 45.3-45.65535
Java 1.2 platform: 45.3-46.0
Java 1.3 platform: 45.3-47.0
Java 1.4 platform: 45.3-48.0

from http://www.javaworld.com/javaworld/javaqa/2003-05/02-qa-0523-version.html?page=2

So , you have to use java 1.5 for running those class files having major version as 48 or more.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
49.0 you mean.
48 is the format for 1.4


42
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
Originally posted by Jeroen T Wenting:
49.0 you mean.
48 is the format for 1.4


As the original question asked for running class version 48 and above , so I recomended jdk 1.5.(for major version number 48+)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read class of Major Version 48 and more
 
Similar Threads
Unexpected java version in class file
error in struts program
UnsupportedClassVersionError
UnsupportedClassVersionError
Jdk version problem