From: <bc...@wo...> - 2001-09-08 13:45:06
|
[Tim] >Hi > >I've been experiencing Jython 2.0 - jythonc failing on Win NT without giving >any indication that all is not well. > >c:>jythonc xyz.py > >eventually executes Compiler.compile(..), in which the line: > > code=jast.Block(pi.executeString(data)) > >causes the program to exit. > >I note in Tools\jythonc, jast is a directory ... It is more than just a directory, it is also a package. A Package is a directory with a __init__.py file in it. When importing the package, the __init__.py file is executed. The jast/__init__.py file contains the line: from Statement import * and the Statement.py file do contain a Block class. So this is not the reason why jythonc is failing. You didn't tell which jvm you are using, but I bet it is MS jview. A bug somewhere (I put the blame on microsoft) prevent jview from running jythonc. I suggest that you install and use a JVM from javasoft instead. If you are trying to create browser applets you should use a JDK1.1, otherwise pick the JDK1.3. regards, finn |