• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the compiled date

 
Garry Tam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get the date the java program was compiled. I want to display this date on the console when the application starts up so that I
can be sure I deployed and running the correct version.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The class files don't carry that information (unless you want to rely on the file creation/modification date). You'll have to come up with a scheme to include that information in the source at compile time yourself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!