How to find when OS is last updated in java -
i want know when os last updated(for linux , widnows) programmatically in java. there way find it? ideas!!
to knowledge there nothing in oracle apis knows upgrade state of system vm might running on.
you determine set of heuristics can use determine upgrade state of given host system, , write platform specific parts of that, switching on system.getproperties("os.version")
, friends.
the hard part determining heuristics. they'll different different systems, versions, releases...
it occur me these sorts of things covered in apache commons classes. if has minimal support sort of thing, will.
followup prompted comments:
apache commons doesn't seem have this, not surprising.
at end of day, first offhand comment still key question: "upgrade" mean systems jvm might find on? free followup question: subset of systems need functionality for?
answer these , can start on solution.
because asking in core java pretty asking impossible.
Comments
Post a Comment