• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing System Clock using Java

 
Kelvin Jones
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I change the date on the system (windows) clock within my Java application? Is this even possible? Do I have to use something like JNI (which I don't know much about)? thanks.

Kel
 
Kelvin Jones
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry I didn't search for this earlier, but I found the post: http://www.coderanch.com/t/367690/java/java/Setting-system-date and it seems to address the issue I'm talking about, saying pretty much that it's not possible without calling some native code for windows.

So now I change my question to, does anyone know how to set this up? or where can I find this native code? Anyone already written code to do this?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic