• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing System Time  RSS feed

 
Rakesh Rajagopalan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to change the time maintained by the OS via a java program. I used the Runtime.getRuntime().exec("Time 12:05:05") and got a Runtime exception. Can anybody help me out of it?
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be polite to share the stack trace of the exception so we can see what the problem is.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!