hey guys

when trying to instantiate a class with reflection and it worked fine while
everything was in the same hierarchy level
in the package..

so if im trying to do
        action = (BehaviorAction)c.newInstance(actionID);
and the package for the action is com.xtivia.xrs.behavior.actions

and im doing it from a class that in the same package but a different
location like com.xtivia.xrs.behavior

im getting the following exception..

java.lang.IllegalAccessException: Com/Xtivia/XRS/Behavior/actions/TimeAction
        at
Com.Xtivia.XRS.Behavior.BehaviorManager.createAction(BehaviorManager.java:22
6)
        at
Com.Xtivia.XRS.Behavior.BehaviorManager3D.requestAction(BehaviorManager3D.ja
va:202)
        ...

is there any wat around this ?

Ben Arbel
Xtivia Technologies
Web
http://www.xtivia.com
http://www.comsoft.co.il
Contact
[EMAIL PROTECTED]
[EMAIL PROTECTED]
work phone(NJ): 732-248-9399
work phone(Israel):  972-9-9598999
cell phone: 972-51-404167

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to