I'll give the hints below a try, meanwhile I've isolated the problem better.
I have a jar file that I developed in java1.3 using JBuilder and the
compiler provided with it (I assume jdk 1.3). When I import that file while
running jython, all is well HOWEVER when I jythonc my main (using --all
--jar Main.py) and run it -- I can import the package but it does not have
any visible contents.
["__name__"] is all I get
the classes in ezjava are all public; I'm stumped.
John Mudd wrote:
> The traceback is always line 0. Yes, that's normal unfortunately.
> Build problem? Here are the rules that I follow:
> Build jar files using jythonc:
> (+) Set CLASSPATH for running even when just compiling.
> (+) Add jython.jar to CLASSPATH while compiling!
> export CLASSPATH=$CLASSPATH:/home/mudd/jython-2.1a1/jython.jar
> (+) rm *class; rm <target>.jar; rm -rf jpywork; touch *py
> (+) jythonc -all --package com.proj.test --jar testRepo.jar
> $(JYTHONSRCS) <------ With --all, no jython jar needed to run.
> (+) Run again if get "too many files" error.
> --- "Sells, Fred" <fred@...> wrote:
> > I have a fairly large application that runs fine under jython.
> > When I try to run it as a jar file, doing
> > >jythonc --core --deep --jar xxx.jar Main.py
> > >java -jar xxx.jar
> > I get a null pointer exception and the python style traceback is
> > always line
> > 0
> > I'm using jython20, jdk1.3 and JBuilder 4's JDBC classes. Is there
> > any way
> > to get better info other than disabling sections of code until I
> > isolate the
> > offending section.
> > tia
> > Fred
> > _______________________________________________
> > Jython-users mailing list
> > Jython-users@...
> > http://lists.sourceforge.net/lists/listinfo/jython-users
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger