Hi Dana,
I am sorry, there is no ForecastJob() method on Job. However, you want getEstimates() ....
So try: jcsOut.println("Time: " + j.getEstimates().getEstimatedRunTime().getTimeMillis());
For your example:
{
Iterator it = jcsSession.executeObjectQuery("select j.* from Job j where j.Description like '%Test%' order by j.Description asc", null);
while(it.hasNext()) {
Job j = (Job) it.next();
jcsOut.println("Job: " + j.getDescription());
jcsOut.println("Time: " + j.getEstimates().getEstimatedRunTime().getTimeMillis());
}
}
Regards,
HP
PS: You also forgot the "null" parameter in your executeObjectQuery()....