-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No idea how to start at all #76
Comments
I'm not an author but I'll take a shot. I built and ran the provided code from a windows command prompt but you can run in eclipse if you want. Here's one way to do that:
Make sure everything is selected and then press Finish. If you have "Project->Build automatically" checked you should be ready to go, otherwise do a "Project->Build All". To run BulkData expand BulkDownloader in the Package Explorer pane and continue to expand folders until you see BulkData.java in the gov.uspto.bulkdata.cli2 package. Right click on it and select "Run as -> java application". In the console pane you are supposed to see the usage statement you pasted into your question. Instead, you'll get an exception saying a required parameter is missing. The class is marked deprecated so it probably won't get fixed. Now repeat the right click and this time select "Run as -> Run configurations" You can then set any of the program arguments for that application. Ex. if you want to pull down a zip file of granted patent xml data you could paste the following into the Program arguments tab:
Then press the apply button and then the run button. The console pane should fill with output as the program runs. The requested data should appear in the outdir you specified, provided that the directory exists before you pressed the run button. You can run any of the java files that have a main method. The README.md files mention the classnames and show the arguments they accept. Just find and run the corresponding java file with the arguments you want and you should be all set. |
Thanks for the reply! But I am still getting quite a lot error codes. Please see below. Any help is greatly appreciated! Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
@George85413 from the exception it looks like your computer doesn't trust the uspto's https certificate, Googling the first line of the exception turns up this at stackoverlow, which doesn't look easy to fix. You could try running Download to see if it will work for sites other than uspto.gov |
Hi,
I really appreciate this site for helping with the data. And I am very sorry to raise the question below. But can the author provide some simple guide how to run these files in Eclipse IDE at all? I am a rookie for Java and just not sure what the following even means. Such as
gov.uspto.bulkdata.cli2.BulkData
How do I run this command in Eclipse IDE at all?
Again, I am very sorry to bring this naive question.
The text was updated successfully, but these errors were encountered: