Dependency injection - Cannot determine simple type name <classname>

View: New views
2 Messages — Rating Filter:   Alert me  

Dependency injection - Cannot determine simple type name <classname>

by shikarishambu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a class that instantiates and calls a function on another class. When I try to invoke function on the first class I get

ERROR:05/08/09 09:45:51:Janino compilation failure:
File Class1, Line 29, Column 35: Cannot determine simple type name "Class2"

How do I make janino aware of the dependencies. I have tried putting package <packagename>; declaration on top these files but that does not seem to help.

TIA

Re: Dependency injection - Cannot determine simple type name <classname>

by Matt Fowles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is Class2 an existing already loaded class or is it a class you are
compiling at the came time?

If it is an existing class make sure you pass a ClassLoader that can
resolve it to the compiler.

Also you should try using a fully qualified name in Class1, so refer
to is as "com.package.Class2" or what ever your package is for Class2.

Matt

On Wed, Aug 5, 2009 at 11:06 AM,
shikarishambu<shikarishambu70@...> wrote:

>
> I have a class that instantiates and calls a function on another class. When
> I try to invoke function on the first class I get
>
> ERROR:05/08/09 09:45:51:Janino compilation failure:
> File Class1, Line 29, Column 35: Cannot determine simple type name "Class2"
>
> How do I make janino aware of the dependencies. I have tried putting package
> <packagename>; declaration on top these files but that does not seem to
> help.
>
> TIA
> --
> View this message in context: http://www.nabble.com/Dependency-injection---Cannot-determine-simple-type-name-%3Cclassname%3E-tp24829676p24829676.html
> Sent from the janino - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email