Class bytecode version number

A

Andrew Thompson

How do I ascertain the 'class format' of classes supplied
by the user? As in, the string/number that represents the
Java version that was specified as the -target at time of
compilation.

(I want to add the information into Appleteer's report.)
 
R

Roedy Green

How do I ascertain the 'class format' of classes supplied
by the user? As in, the string/number that represents the
Java version that was specified as the -target at time of
compilation.

You can study the first few bytes of the class file.

see the source code at http://mindprod.com/products1.html#JARCHECK
--
Roedy Green Canadian Mind Products
http://mindprod.com
PM Steven Harper is fixated on the costs of implementing Kyoto, estimated as high as 1% of GDP.
However, he refuses to consider the costs of not implementing Kyoto which the
famous economist Nicholas Stern estimated at 5 to 20% of GDP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top