From: Chris F. <ch...@fa...> - 2004-07-27 07:06:00
|
I have the following directory structure test ---------> __init__.py main.py A --------->__init__.py A.py B --------->__init__.py B.py main.py: from A import A.A from B import B.B print 'hello world' A.py: class A: pass B.py: class B: pass runs fine in python and jython command prompt BUT 'jythonc -c -j main.jar main.py' gives the following errors, why ? processing main processing A.A processing B.__init__ processing B.B processing A.__init__ Required packages: Creating adapters: Creating .java files: __init__ module A module __init__ module main module B module Compiling .java to .class... Compiling with args: ['C:\\j2sdk1.4.1_01\\bin\\javac.exe', '- classpath', 'C:\\jython-2.1\\jython.jar;;.\\jpywork;;C:\\jython- 2.1\\Tools\\jythonc;C:\\cygwin\\home\\Chris\\hello\\.;C:\\jython- 2.1\\Lib;C:\\jython-2.1', '.\\jpywork\\B\\__init__.java', '.\\jpywork\\A\\A.java', '.\\jpywork\\A\\__init__.java', '.\\jpywork\\main.java', '.\\jpywork\\B\\B.java'] 1 .\jpywork\B\__init__.java:51: cannot resolve symbol symbol : class __init__ location: class B.B Py.runMain(B.__init__._PyInner.class, newargs, __init__.jpy$packages, __init__.jpy$mainProperties, "B", new String[] {"main", "B.B", "A.__init__", "B.__init__", "A.A"}); ^ .\jpywork\A\A.java:61: cannot resolve symbol symbol : class A location: class A.A Py.runMain(A.A._PyInner.class, newargs, A.jpy$packages, A.jpy$mainProperties, "A", new String[] {"main", "B.B", "A.__init__", "B.__init__", "A.A"}); ^ .\jpywork\A\__init__.java:51: cannot resolve symbol symbol : class __init__ location: class A.A Py.runMain(A.__init__._PyInner.class, newargs, __init__.jpy$packages, __init__.jpy$mainProperties, "A", new String[] {"main", "B.B", "A.__init__", "B.__init__", "A.A"}); ^ .\jpywork\B\B.java:61: cannot resolve symbol symbol : class B location: class B.B Py.runMain(B.B._PyInner.class, newargs, B.jpy$packages, B.jpy$mainProperties, "B", new String[] {"main", "B.B", "A.__init__", "B.__init__", "A.A"}); ^ 4 errors ERROR DURING JAVA COMPILATION... EXITING |