Finding which version my jar was compiled


Well, a quick hint here.

I was doing some tests with a pre-compiled jar and an older version of java. But I didn’t know which version specifically it was compiled – javaassist.jar

To solve this mistery then:

# jar xf javassist.jar

# cd javassist/

# file Loader.class

Result: Loader.class: compiled Java class data, version 51.0 (Java 1.7)


1.7 Therefore, we are all good.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s