3

Is there a platform independent possibility for Java programs to receive APM or ACPI events when the system goes into standby mode or hibernation - and again when it returns from these modes?

(So that one has the possibility to e.g. delete a half written file on a network drive, before the system goes down?)

tomix86
  • 1,336
  • 2
  • 18
  • 29
Jaleks
  • 561
  • 5
  • 19

1 Answers1

1

This seems like it requires direct interaction with the operating system. Unless this capability is added to the java api, you can't do it in a platform-independent way. You could write native methods for this purpose, but you must rewrite them for different platforms.

tbodt
  • 16,609
  • 6
  • 58
  • 83