Melanie, Your answer for right now then is to run that script from its directory. It would great if you could open a Jira issue for improvement [1]. If you happen to update the script to make it more robust that would be a great contribution back to the community. To do that you would just create a patch file and attach it to the issue.
Thanks, Paul [1] https://issues.apache.org/jira/browse/OODT Sent from my iPhone > On Sep 19, 2014, at 8:34 PM, "Lewis John Mcgibbney" > <lewis.mcgibb...@gmail.com> wrote: > > You are correct Paul R. > The http client dependency is present in crawler Pom.xml > <dependency> > <groupId>commons-httpclient</groupId> > <artifactId>commons-httpclient</artifactId> > <version>3.0</version> > </dependency> > The crawler launcher script had the following hard pathS which we should > improve > > Java.ext.dirs=../lib > > If this I not invoked from crawler module path then dependencies a are not > on classpath > > On Friday, September 19, 2014, Ramirez, Paul M (398J) < > paul.m.rami...@jpl.nasa.gov> wrote: > >> Could also just be the way the script references the jars. Maybe they >> aren't on the classpath. Not near a computer at the moment or I would look >> at the script. >> >> --Paul >> >> Sent from my iPhone >> >>>> On Sep 19, 2014, at 7:25 PM, "Lewis John Mcgibbney" < >>> lewis.mcgibb...@gmail.com <javascript:;>> wrote: >>> >>> Hi Angela. >>> If you are using OODT from source, you can simply add the http client >>> commons library to the Pom.xml and rebuild the module. This does however >>> mean working with the XML and maven to build. Which version of oodt do >> you >>> have? >>> >>>> On Friday, September 19, 2014, Mengying Wang <wang...@usc.edu >> <javascript:;>> wrote: >>>> >>>> Dear Everyone, >>>> >>>> I am trying to use the url-downloader script of the Apache OODT Crawler. >>>> However, it raises the following "no class definition" error, I am not >> sure >>>> what is going on. Could you please give me some hints? Many thanks. >>>> >>>> $ ./url-downloader >> http://pds-imaging.jpl.nasa.gov/data/msl/MSLHAZ_0XXX/CATALOG/CATINFO.TXT . >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> org/apache/oodt/cas/pushpull/protocol/http/HttpClient >>>> Caused by: java.lang.ClassNotFoundException: >>>> org.apache.oodt.cas.pushpull.protocol.http.HttpClient >>>> 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) >>>> >>>> Best, >>>> Angela Wang >>> >>> >>> -- >>> *Lewis* > > > -- > *Lewis*