Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Determine version of a struts.jar

 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is it possible to determine the version of a struts.jar ?

I am using equinox 1.0. Therein, there is a struts.jar file which is 511438 bytes. It is written in the versions.txt file that it is version 1.1, butit is obviously a 1.2.

Does anyone know which version it is really ?

Thanks,

S.
 
Stefan Willi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI St�phane !

Look at the META-INF/Manifest.MF inside the Jar.

This file give you the related information.
in my Case: Struts 1.2.4
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
Extension-Name: Struts Framework
Specification-Title: Struts Framework
Specification-Vendor: The Apache Software Foundation
Specification-Version: 1.2.4
Implementation-Title: Struts Framework
Implementation-Vendor: The Apache Software Foundation
Implementation-Vendor-Id: org.apache
Implementation-Version: 1.2.4
Class-Path: commons-beanutils.jar commons-collections.jar commons-dig
ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar

And the Size of the JAR is 526.578 Bytes.

Stefan
 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I already looked in it, but its contents seem strange to me.
Here it is :

________________________________________________________________
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Extension-Name: Struts Framework
Specification-Title: Struts Framework
Specification-Vendor: Apache Software Foundation
Specification-Version: 1.1
Implementation-Title: Struts Framework
Implementation-Vendor: Apache Software Foundation
Implementation-Vendor-Id: org.apache
Implementation-Version: 1.1
Class-Path: commons-beanutils.jar commons-collections.jar commons-dig
ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar
________________________________________________________________

However, I am certain that it is a version 1.2.0 at least, due to the presence of some classes which didn't exist in version 1.1.

What I also did is download all versions 1.2.0 --> 1.2.6 from Struts and compare the size of the jar. But those are always bigger ...

I think the developer of equinox probably has used a custom version ... but of which one ?

Thanks,

S.
[ April 05, 2005: Message edited by: St�phane Weber ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic