I have created a class for Bill Of Material creation, and put the logic in run method, then call the run method through main method,then i create i job and call the main method of my class but nothing is happening, then i use the debugger, by using debugger i came to know that it is not going to the main method of my class.
If you are calling it from the code try to avoid using the main call direclty rather use another static method to run the business logic. Main is used when class is called from the menuItem.