This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How can i set jar file with version number or info Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How can i set jar file with version number or info" Watch "How can i set jar file with version number or info" New topic
Author

How can i set jar file with version number or info

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all

is there any way to include in jar file the option to get information about the jar file

when doing some thing like MyApp.jar -version and it will print me some info i predefined?

not programmatically

Thanks
gaurav abbi
Ranch Hand

Joined: Jan 05, 2007
Posts: 108
for ZipOutPutStream class
there is setComment() method, but not very sure anything apart from programming level.
otherwise jar -tvf can be used to extract information
and while creating a jar we can also specify the META-INF file ,
may be there you can write something using -m option


thanks,<br />gaurav abbi
 
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: How can i set jar file with version number or info
 
Similar Threads
How do I identify the version of xerces/xalan contained in jar?
Apache POI 3.6 + java.lang.NoSuchMethodError: org.apache.poi.util.IOUtils.copy
What does this mean: Compiled from BinConverter.java (version 1.3 : 47.0, super bit)?
Automatic Updation of Client side Jars & other resources
how to deal with the property file that could be modified by user