hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Tim.Hollo...@EverBank.com>
Subject RE: Running the demos from source
Date Tue, 02 May 2006 13:53:08 GMT


> -----Original Message-----
> From: Shing Hing Man [mailto:matmsh@yahoo.com]
> Sent: Tuesday, May 02, 2006 9:37 AM
> To: hivemind-user@jakarta.apache.org
> Subject: RE: Running the demos from source
> 
> To ascertain whether moduile.lib.dir contains the
> correct classpath, you could use echo to show its
> value.
> I have not tried to display the value
> of moduile.lib.dir
>  because the following steps to run the calculator
> works for me.
> 
> 1) After untarring hivemind-1.1.tar.gz,
>    go to  subdirectory hivemind-1.1/examples
>     and then at command prompt, issue  'ant'
> 2) In the build file examples/build.xml, in the target
> run-calculator, change
> org.apache.hivemind.examples.CalculatorMain
> to org.apache.examples.CalculatorMain
> 
> 2) Still within examples directory, issue
>   'ant run-calculator'
> 
> I did not need to do a build at the root directory.
> 
> Shing
> 
> --- Tim.Holloway@EverBank.com wrote:
> 

That was it. Manually correcting the build.xml in the examples directory
makes all happy.

Has this been reported as a bug?

  Thanks,

    Tim
> >
> >
> > > -----Original Message-----
> > > From: Shing Hing Man [mailto:matmsh@yahoo.com]
> > > Sent: Monday, May 01, 2006 12:22 PM
> > > To: hivemind-user@jakarta.apache.org
> > > Subject: Re: Running the demos from source
> > >
> > > In the build.xml, the target to run the caculator
> > > example is
> > > <target name="run-calculator" description="Execute
> > the
> > > Calculator example.">
> > >     <java
> > >
> >
> classname="org.apache.hivemind.examples.CalculatorMain">
> > >       <classpath refid="runtime.classpath"/>
> > >       <sysproperty key="PROJECT_ROOT"
> > > value="${project.dir}"/>
> > >       <arg line="28 4.75"/>
> > >     </java>
> > >   </target>
> > >
> > >
> > > The classname should be
> > > org.apache.examples.CalculatorMain
> > >
> > > (CalculatorMain.java is not in the hivemind
> > > subdirectory.)
> > >
> >
> > To be precise, I find a copy of the CalculatorMain
> > classfile in the
> > examples/target/hivemind-examples-1.1.1.jar file,
> > but that's not being
> > included in the classpath (runtime.classpath) for
> > target
> > "run-calculator" in the examples build.xml.
> > Therefore the
> > ClassNotFoundException. It does exactly what I'd
> > expect it to do given
> > the way the build.xml is set up.
> >
> > My problem is that as far as the HiveMind docs read,
> > I should in theory
> > be able to go from source to demo exection in 3
> > steps:
> >
> > 1. At project root:
> >
> > ant <default target.
> >
> > 2. cd to examples directory
> >
> > 3. In examples directory:
> >
> > ant run-calculator.
> >
> > I am, of course, ignoring the stops and restarts
> > where the extra items
> > are downloaded and installed.
> >
> > Nowhere in the docs is mention made of any need to
> > tweak the environment
> > or any config files to get the examples to execute,
> > but considering what
> > got built where, there's no way the examples are
> > going to run for me
> > unless I apply brute force to the process, since the
> > runtime classpath
> > doesn't reflect the built directories.
> >
> >
> >     Tim
> >
> > > Shing
> > >
> > > --- Tim.Holloway@EverBank.com wrote:
> > >
> > > > I'm trying to get cranking on HiveMind, but it
> > seems
> > > > something might be
> > > > broken.
> > > >
> > > >
> > > >
> > > > I downloaded HiveMind-1.1.1.zip and exploded it,
> > ran
> > > > Ant, it build
> > > > itself and passed all the tests.
> > > >
> > > >
> > > >
> > > > However, then I "cd"d into the examples
> > directory
> > > > and ran Ant. Also
> > > > good.
> > > >
> > > >
> > > >
> > > > But when I try to run the examples themselves
> > (e.g.
> > > > "ant
> > > > run-calculator") I get a ClassNotFoundException.
> > Not
> > > > surprising since
> > > > the "runtime.classpath" path seems to be
> > referencing
> > > > an undefined
> > > > "moduile.lib.dir".
> > > >
> > > >
> > > >
> > > > help?
> > > >
> > > >
> > > >
> > > >    Tim Holloway
> > > >
> > > >    EverBank
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -----------------------------------------
> > > > This electronic communication and any files
> > > > transmitted with it, or
> > > > attached to it, are confidential and are
> > intended
> > > > solely for the
> > > > use of the individual or entity to who it is
> > > > addressed and may
> > > > contain information that is confidential,
> > legally
> > > > privileged,
> > > > protected by privacy laws, or otherwise
> > restricted
> > > > from disclosure
> > > > to anyone else.  If you are not the intended
> > > > recipient or the
> > > > person responsible for delivering the e-mail to
> > the
> > > > intended
> > > > recipient, be advised that you have received
> > this
> > > > e-mail in error,
> > > > and that any use, dissemination, forwarding,
> > > > printing, or copying
> > > > of this e-mail is strictly prohibited.
> > > >
> > > > If you received this e-mail in error, please
> > return
> > > > the e-mail to
> > > > the sender, delete it from your computer and
> > destroy
> > > > any printed
> > > > copy of it. Although our company attempts to
> > sweep
> > > > e-mail and
> > > > attachments for viruses, it does not guarantee
> > that
> > > > either are
> > > > virus-free and accepts no liability for any
> > damage
> > > > sustained as a
> > > > result of viruses.
> > > >
> > >
> > > Home page :
> > >   http://uk.geocities.com/matmsh/index.html
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________
> > > 24 FIFA World Cup tickets to be won with Yahoo!
> > Mail
> > > http://uk.mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > hivemind-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > hivemind-user-help@jakarta.apache.org
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > hivemind-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > hivemind-user-help@jakarta.apache.org
> >
> >
> 
> Home page :
>   http://uk.geocities.com/matmsh/index.html
> 
> 
> 
> ___________________________________________________________
> NEW - Yahoo! 360 - Your one place to blog, create, publish and share!
> http://uk.360.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message