logo       

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

lang.jython.user

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

Hi Oti,

After creating the jar using:

jythonc --all --jar myjar.jar mygui.py

I run:

java -jar myjar.jar

However if run:

jython mygui.py

It works fine.

The jar method works for several other very similar apps I've written, I've just gone back and tried these with the same environment settings - these work fine. With my current app no errors are reported until execution (as below) and only when built into class files and packaged into a jar. Any ideas?

Thanks,

Phil.

Oti wrote:

Hi Phil,

it should (at least find the class).
Can you provide the command which you try to start your app with?

Best wishes,
Oti.


On 3/30/06, Phil <phil.beadling@xxxxxxxxxxxxxxxx> wrote:

Walter, Fred,

Many thanks for your replies. I've tried adding the jython.jar
directory and also my pwd to the CLASSPATH with no luck.

The thing which confuses me is that all other attempts at producing jars
from jython have worked for me no problem using 2.2a. Until this issue
it has worked OK for me. As far as I can see I haven't done anything
different.

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.

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







-------------------------------------------------------
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