This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes default calling the java file in windows and linux Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "default calling the java file in windows and linux" Watch "default calling the java file in windows and linux" New topic
Author

default calling the java file in windows and linux

Vijay kumar p
Greenhorn

Joined: Jun 08, 2007
Posts: 6
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
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Use Runtime.getRuntime() to create a new Process.
OR: The ProcessBuilder class in JDK5.0 makes the whole process easier.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default calling the java file in windows and linux
 
Similar Threads
reading the configurtation file divided in the sections
writing files form Linux to Windows
Jar file on linux ?
access different file system
access different file system