Error message when invoking screen-scraper from the Command line
I am trying to invoke a scraping session called "My Session" from the command prompt. The syntax I used was
cd C:\Program Files\screen-scraper enterprise edition
"jre\bin\java" -jar screen-scraper.jar -s "My Session"
This gave the following error:
Initializing screen-scraper...
Running script "My Session"...
An error occurred while processing the script: My Session
.
The error message was: class bsh.EvalError (line 12): session .setVariable ( "IN
PUT_FILE" , "W:/Documents/Data/inputdata.csv" )
-- Attempt to invoke method: setVariable() on undefined variable or class name:
session
When I run the scraping session from within the screen-scraper workbench there are no problems.
So why doesn't it work when invoking from the command prompt?
Thanks in advance.
Kristine
That's odd. I just tested a
That's odd. I just tested a scrape from command line, and it's working for me, so I most likely need to see your scrape. Would that be something that we could do?
Came across this same problem
Try running a scrape that includes a script. I just created another topic and posted some sample code.