> -----Original Message-----
> From: Shing Hing Man [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 01, 2006 12:22 PM
> To: [email protected]
> 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
>
> --- [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]