Finding which version my jar was compiled

All

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:

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s