cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Need help calling Java from flowscript
Date Mon, 23 Feb 2004 20:27:53 GMT
Mark Lundquist wrote:

> Hi,
>
> I'm trying to call Java from flowscript for the first time, but I'm 
> stuck.  The interpreter seems to be finding my Java class just fine; 
> it doesn't complain about:
>
>     importClass (Packages.com.wrinkledog.foo);
>
> However, it's not finding the class methods.  I get error messages like:
>
>     Java class "com.wrinkledog.foo" has no public instance field or 
> method named "bar".
>
> ...or:
>
>     Java class "com.wrinkledog.foo" has no constructor named "bar" 
> with arguments "".
>
> The class in a .jar that I link to from WEB-INF/lib.  The class is 
> public, and so is the method that I'm trying to call.

If in Java you'd do:

import com.wrinkledoc.Foo;
Foo foo = new Foo();

Then in Java, you'd do:

var foo = new Packages.com.wrinkledoc.Foo();

Regards, Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message