From: John M. <joh...@ya...> - 2001-04-05 15:52:30
|
I have a clue!! The error below is apparently because the member that I'm trying to inherit is protected. My script version works because I have set "python.security.respectJavaAccessibility = false" in my registry file. But my jar version fails even when I copy the registry file to the same directory as the jar file. Any suggestions? --- John Mudd <joh...@ya...> wrote: > My previous message said that my jar worked w/o jython.jar. That was > my mistake. I didn't test it far enough. I still need jython.jar > to > avoid the following error at run time. > > > --- John Mudd <joh...@ya...> wrote: > > I switched to the latest jython but I still get an error when > trying > > to > > run a jythonc generated jar file unless I put the jython.jar in the > > CLASSPATH. I used the "--all" option when running jythonc. Any > > suggestions. > > > > In this case yyy is a valid attribute for a super class that was > > inherited by xxx. This works when run as a jython script. It only > > works as a jythonc jar file if I put jython.jar in the CLASSPATH. > > > > AttributeError: instance of 'xxx' has no attribute 'yyy' > > > > > > > > > > $ jython > > Jython 2.1a1 on javaVM-1.3.0.01 (JIT: null) > > Type "copyright", "credits" or "license" for more information. > > >>> > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get email at your own domain with Yahoo! Mail. > > http://personal.mail.yahoo.com/ > > > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > http://lists.sourceforge.net/lists/listinfo/jython-users > > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |