File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java to capture OS related events

 
sanuji pillai
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am looking for example code in java to capture OS related events like Logout/Login/Shutdown/Restart/Monitor-Lock ..etc.


Regards,

Sanuji Pillai.
 
Stephan van Hulst
Bartender
Pie
Posts: 4826
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah... you need native code for that. Google for a JNI or preferably a JNA solution to this problem.
 
Winston Gutkowski
Bartender
Pie
Posts: 9450
49
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sanuji pillai wrote:I am looking for example code in java to capture OS related events like Logout/Login/Shutdown/Restart/Monitor-Lock ..etc.

May I ask why? It goes against the entire ethos of Java, which is to be platform-independent.

Winston
 
sanuji pillai
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You "Stephan van Hulst" & "Winston Gutkowski"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic