Topic
  • 6 replies
  • Latest Post - ‏2013-10-01T18:51:39Z by EliaRosch
SystemAdmin
SystemAdmin
5507 Posts

Pinned topic Running RPT7.0 from command line

‏2007-06-21T13:42:07Z |
When I try to run a schedule in batch mode from the command line, I get a "no public JRE" message. I've copied the java.exe into the same directory as the "cmdline.bat" file so as to ensure java.exe is in the search path. Also, please check my parms in the attachment below. For the project and schedule, I used the same case as what displays in the RPT GUI. Other than that, does case matter? What does "no public JRE" mean? Note: I did a default RPT install except that I put it on the E drive of the machine instead of the C drive. Our shop does not allow applications to be installed on the C drive which is reserved for system software.

REM kickoff of response time monitor
cd "e:\program files\ibm\sdp70shared\plugins\com.ibm.rational.test.lt.cmdlineexecute_7.0.0.v200612201330"
cmdline -workspace "e:\ds\bmclees\ibm\rpt7.0\workspace" -project GMCARSPROJ100 -schedule GMCARSSCHED100SK-JointPPD -eclipsehome "e:\program files\ibm\rpt70" -plugins "e:\program files\ibm\sdp70shared\plugins" -results "e:\temp\rptbattest" -overwrite
pause
exit

The project/schedule work just fine when launching within the RPT GUI
Updated on 2013-02-12T16:19:57Z at 2013-02-12T16:19:57Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    5507 Posts

    Re: Running RPT7.0 from command line

    ‏2007-06-26T19:17:12Z  
    I discovered that my java.exe in the cmdline.bat file had to be fully qualified. Doing that seems to have fixed the problem.
  • CafeRacer
    CafeRacer
    154 Posts

    Re: Running RPT7.0 from command line

    ‏2007-07-09T14:45:41Z  
    I discovered that my java.exe in the cmdline.bat file had to be fully qualified. Doing that seems to have fixed the problem.
    Interesting...
    From talking to a couple of the RPT engineers, its my understanding that this was a documention defect; in fact there is a pending defect in place to remove the section of the help that states you can view the reports as the run is executing (via the command line).
    ...but it sounds like it now workds for you.
    Thanks for the information
  • SystemAdmin
    SystemAdmin
    5507 Posts

    Re: Running RPT7.0 from command line

    ‏2013-02-12T16:17:18Z  
    • CafeRacer
    • ‏2007-07-09T14:45:41Z
    Interesting...
    From talking to a couple of the RPT engineers, its my understanding that this was a documention defect; in fact there is a pending defect in place to remove the section of the help that states you can view the reports as the run is executing (via the command line).
    ...but it sounds like it now workds for you.
    Thanks for the information
    Hi

    From this directory:
    C:\Program Files (x86)\IBM\IMShared\plugins\com.ibm.rational.test.lt.cmdlineexecute_7.2.700.v20120614_0752
    I am running this command:

    cmdline.bat -configfile c:\rpt.txt

    and when I do, I get this error:

    Exception in thread "main" java.land.NullPpointerException at ***.getjavapath(cmdline.execute.java:643)

    Can anyone help me with this? Iamgoingmad...
  • SystemAdmin
    SystemAdmin
    5507 Posts

    Re: Running RPT7.0 from command line

    ‏2013-02-12T16:19:57Z  
    Hi

    From this directory:
    C:\Program Files (x86)\IBM\IMShared\plugins\com.ibm.rational.test.lt.cmdlineexecute_7.2.700.v20120614_0752
    I am running this command:

    cmdline.bat -configfile c:\rpt.txt

    and when I do, I get this error:

    Exception in thread "main" java.land.NullPpointerException at ***.getjavapath(cmdline.execute.java:643)

    Can anyone help me with this? Iamgoingmad...
    For the record I am using RPT 8.3
  • EliaRosch
    EliaRosch
    4 Posts

    Re: Running RPT7.0 from command line

    ‏2013-10-01T15:44:59Z  
    For the record I am using RPT 8.3

    I run into the same problem. Did anyone ever figured it out?

  • EliaRosch
    EliaRosch
    4 Posts

    Re: Running RPT7.0 from command line

    ‏2013-10-01T18:51:39Z  
    • EliaRosch
    • ‏2013-10-01T15:44:59Z

    I run into the same problem. Did anyone ever figured it out?

    nvm, my path for config file was wrong