Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

default calling the java file in windows and linux  RSS feed

 
Vijay kumar p
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application i have the option of scheduling the time for particular code to run. In this case i am checking the time of schedule with system time. I want to call the java file. how can i do this in windows and linux OS.
 
Campbell Ritchie
Marshal
Posts: 54886
155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Runtime.getRuntime() to create a new Process.
OR: The ProcessBuilder class in JDK5.0 makes the whole process easier.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!