logo       

Re: java.lang.NoClassDefFoundError: org/python/parser/ast/VisitorBase: msg#00089

lang.jython.user

Subject: Re: java.lang.NoClassDefFoundError: org/python/parser/ast/VisitorBase

Hi All,

I've solved the issue. I thought I'd write back and share the knowledge.

A cut and paste error in my code had lead me with duplicate import statements (doh). Whilst this doesn't bother the jython interpreter, and isn't really illegal - just pointless, it screws up the creation of jar files.

A nasty gotcha - given that the error seen on execution of the jar has little or nothing to do with the issue.

Thanks for everyones input and help,

Phil.

Frank Wierzbicki wrote:

My best guess is still that this is a failure to package the required
elements into the jar by jythonc to run the app standalone.

Probably what has happend is that you had a jython.jar in your
classpath when you invoked jythonc. jythonc then doesn't re-package
the classes it already sees on your classpath. I don't use jythonc
much anymore, but I remember having this problem in the past.


Could anyone confirm whether or not the 'ast' package is working with
2.2a and jythonc out of the box?

Note that jythonc in its current implementation cannot move forward
because of some technical limitations. It will have to be re-written,
which is not likely to make the scope cut for Jython 2.2. It will
probably re-appear in Jython 2.3 in a new form. If you really need
jythonc, I would recommend staying with Jython 2.1 for now.

-Frank


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Jython-users mailing list
Jython-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jython-users






-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise