From: Sells, Fred <fred@ad...> - 2001-08-06 16:46:16
I tried your suggestions with no impact. I was not able to "touch" the .py
files since I am on W2k and do not know the equivalent command, it there is
I notice that my ezjava.jar manifest does not define any of the classes in
the file. Other's who know java but not jython indicate that could be the
So far, I've not found any useful information on the manifest, but am
continuing to search.
From: John Mudd [mailto:johnmudd@...]
Sent: Friday, August 03, 2001 2:29 PM
To: Sells, Fred; Jython-users@...
Subject: Re: [Jython-users] jythonc debug help
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!
(+) 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
> 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.
> Jython-users mailing list
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
Jython-users mailing list
At 12:47 PM 8/6/2001 -0400, you wrote:
>I tried your suggestions with no impact. I was not able to "touch" the .py
>files since I am on W2k and do not know the equivalent command, it there is
A little Python can take care of the touch part. To "touch" a file
use os.utime, as in:
now = time.time()
os.utime(pathname, (now, now))
Not in Jython, though.
One way to "touch" an existing file in jython is to use the standard Java
API as follows:
from java.util import Date
from java.io import File
now = Date().time
> -----Original Message-----
> [...] To "touch" a file use os.utime, as in:
> now = time.time()
> os.utime(pathname, (now, now))
> Not in Jython, though.