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.
posted 11 years ago
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.