Direction on command line run error
I have run into one more snag in this first test. I am using the screen-scraper basic at the moment and understand from the documentation that I can invoke it from the command line. I am getting an error trying and hope somebody can point me in the right direction.
I have one difference from the documentation, I am not wanting to pass any parameters. I have an initialization file that gets skus from a .csv file to check pricing periodically. I am pasting below what I get on the command line. I tried first direct from the documentation and found that I must need to add the path to screen-scraper.jar, then on another run I get this error. I have tried looking into it, but am lost at the moment..... This session runs and works great in the screen-scraper interface.
-------------------------------------------------------------------------
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Skakawack>"C:\Program Files\screen-scraper basic edition\jre\bin\java"
-jar screen-scraper.jar -s "Get Pricing"
Unable to access jarfile screen-scraper.jar
C:\Users\Skakawack>"C:\Program Files\screen-scraper basic edition\jre\bin\java"
-jar "C:\Program Files\screen-scraper basic edition\screen-scraper.jar" -s "Get Pricing"
Exception in thread "main" java.lang.NullPointerException
at com.screenscraper.Settings.getEdition(Settings.java:1241)
at com.screenscraper.controller.ControllerMain.main(ControllerMain.java:393)
--------------------------------------------------------------------------
Figured it out
Thanks to anybody looking to help. I found this below and it helped me work it out. I am running on Vista. Re-installed in another directory and had to run batch file from that directory. I love this software!
How can I run screen-scraper via a batch file when running on Microsoft Windows Server 2008 or Vista?
http://community.screen-scraper.com/faq#81n1322