problem running SS from OSX command line...
Hi,
I am trying to run a scrape from my osx terminal window. In the workbench everything works, but for some reason I am getting this error when I run anything in osx command line:
/usr/bin/java -jar screen-scraper.jar -s "test"
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/AutoCloseable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at com.screenscraper.controller.ControllerMain.main(ControllerMain.java:303)
Caused by: java.lang.ClassNotFoundException: java.lang.AutoCloseable
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 13 more
What can be wring?
Thank you,
Boga
You've updated to an alpha
You've updated to an alpha version of screen-scraper that is not supported by the default Java 1.6. You can either use a new version of Java, or roll back to version 6.0.63a.
Use alternate Java: http://community.screen-scraper.com/FAQ/BSD
Rollback: http://community.screen-scraper.com/FAQ/BadAlpha
I downloaded
I downloaded http://www.screen-scraper.com/screen-scraper/updates/6.0.63a/update.zip
1) After uncompressing it do I have to copy ALL its files and directories into my Screen Scraper installation directory including runonce.script and ss_updater.py?
2) Apart from the copying and the updating of the version number in resource\conf\screen-scraper.properties do I have to do anything else or that's it?
Many thanks,
Boga
Yes, overwrite all files, and
Yes, overwrite all files, and the only manual edit is the version in the screen-scraper.properties file.
PROBLEMS.I did as advised
PROBLEMS.
I did as advised and copied all contents of zip folder, and chose overwrite when the message popped.
Then I went to the resource/conf/ directory and the screen-scraper.properties file is no longer there. Just gui.ale , main.ale and referer_list.txt
Now when I try to run the workbench I get a startup error:
java.lang.NoClassDefFoundError: jargs/gnu/CmdLineParser$OptionException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2693)
at java.lang.Class.getDeclaredMethod(Class.java:2120)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jargs.gnu.CmdLineParser$OptionException
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more
I have rolled back to my
I have rolled back to my backup so I have SS workbench working again, but I would like to know how can I copy the files inside the zip folder without this step deleting crucial files that ought to be in the SS installation that are not in the zip folder
Unzipping a file shouldn't
Unzipping a file shouldn't affect any files save the ones overwritten. Sometimes I've seen the screen-scraper.properties deleted the workbench crashes or something. I've used this update procedure uncounted times, and I'm not sure what happened here. Sorry.
well,Could the problem be be
well,
Could the problem be be in the instructions you pointed me to at: http://community.screen-scraper.com/FAQ/BadAlpha ?
There it says(bold emphasis mine):
2. Once you've downloaded the "update.zip" file, unzip the contents of the file to a temporary location on your computer.
3. At this point ensure that screen-scraper is not currently running. You're going to need to overwrite existing files, and screen-scraper can't be running when you do this.
4. Now copy all of the files you unzipped in step 2 into the directory where screen-scraper is installed, overwriting any existing files. Note that you do not need to copy the "update.zip" file itself.
I'm doing this in a GUI OSX and when I a select all the files and folders inside the folder resulting from uncompressing the zip and drag & drop them to the ScreenScraper install folder I am presented with this message:
A newer folder named “lib” already exists in this location. Do you want to merge or replace it with the older one you’re copying?
Merge will combine the two folders, preserving all the newer items.
(with an "apply to all" checkbox)
What I have done before is selected "replace" but I ended with the problem mentioned before, since a lot of files that should be there were not there any more. But I suspect that "merge" is not the way to go either, right?
Please tell me what I'm doing wrong so I don't screw things.
As always, thank you,
Boga