aspose file tools*
The moose likes Java in General and the fly likes Changing System Clock using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing System Clock using Java" Watch "Changing System Clock using Java" New topic
Author

Changing System Clock using Java

Kelvin Jones
Greenhorn

Joined: Mar 10, 2003
Posts: 5
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

Joined: Mar 10, 2003
Posts: 5
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing System Clock using Java