Error Message: A main Java class needs to be specified to run the program.

Hi,
I am adding a program object to cms using java program, and trying to run it. I am getting an error message like
Error Message: A main Java class needs to be specified to run the program.
Could you please help me on this., please find the pasted program object pasted below
public class MoveReports   {
public void run(IEnterpriseSession enterpriseSession, IInfoStore infoStore,
               String[] args) throws SDKException {
    int objectSize = ;
    String cms = "";
     String username = "";
     String password = "";
     String auth = "";
    try {
          ISessionMgr sm = CrystalEnterprise.getSessionMgr();
         enterpriseSession = sm.logon(username, password, cms, auth);
         IInfoStore oInfoStore=(IInfoStore)enterpriseSession.getService("", "InfoStore");
             IInfoObjects iObjects = null;
               iObjects = oInfoStore.query("Select * from CI_INFOOBJECTS where SI_PARENTID = 44104 AND SI_PROGID LIKE '%CrystalEnterprise.Excel%'");
               // Getting total number of reports
               objectSize = iObjects.size();
               if(objectSize > 0)
                    for (int count = 0; count < objectSize; count++)
                         IInfoObject obj = (IInfoObject) iObjects.get(count);
                         // Specify the Destination parent Id to move the reports
                         obj.setParentID(44102);
                    oInfoStore.commit(iObjects);
                    System.out.println("Reports Moved Successfully");
               else
                    System.out.println("Reports Not Available");
         catch (SDKException e) {
             e.printStackTrace();
             System.out.println("Error : " + e.getMessage());
Thanks&Regards
Damodar
Edited by: Damodaram B on Nov 2, 2009 1:29 PM

There's couple of things at issue here - you've not specified the proper interface (IProgramBase or IProgramBaseEx), and the program job server can't find the class in question (a deployment issue).
You may want to open a support ticket with SAP.
Sincerely,
Ted Ueda

Similar Messages

Maybe you are looking for

  • Sales Document creation

    I am creating the sales document using the FM SD_SALESDOCUMENT_CREATE But if we pass net value 120 it creates as 1200. it is same for tax values also if tax is 10 it takes as 100. How can we solve this problem?

  • Account 3100005001 requires an assignment to a CO object

    Account 3100005001 requires an assignment to a CO object Message no. KI235 Diagnosis You have not defined a CO account assignment for an account that is relevant to cost accounting. System Response Account 3100005001 is defined as a cost element. Thi

  • Where is ichat in mountain lion?

    where is ichat in mountain lion?

  • RS232 Serial Port - LEDs

    Hi, I have some experience with Java, though not with any direct hardware communication. Can anyone help me make a simple program which will allow me to control a couple (or more) of LEDs? Any advice much appreciated. (I get the impression so far tha

  • New iPhone upgrade and messed up backups

    I upgraded four iPhones recently, and I backed up all of the phones to my computer, then did a restore from previous backup. All went well until today, when I wanted to back up my iPhone, when I noticed that it was backing up every new phone that I b