I have Created a batch scheduler which need to run for Every 5 min. but i am getting this error. can any one please help me out.
Error: Compile Error: Method does not exist or incorrect signature: void schedule(String, String, Batchclassname) from the type System at line 6 column 16
My Code:
global class Batchclassname_Schedule implements Schedulable{
global static void execute(SchedulableContext SC)
{
String sch = '0 5 * * * ?';
System.schedule('Schedule Job Name 1',sch,New Batchclassname());
}
}