I just happen to use jython-21 to compile python
files to .jar file. When i use thus obtained .jar file
in my natural java files, i always get PyException,
Traceback [innermost last]:
File "C:\work\JMontyTagger.py", line 0, in __init__
I found from the JMontyTagger.java file obtained
JMontyTagger.py by jython-21, there is string constant
being initialized to the above directory, i.e.
C:\work\JMontyTagger.py, and i am running my java
files in a differnt directory, thus get the above
exception. The "C:\work\JMontyTagger.py" path is the
one when i run jythonc command to get the .jar file.
What i mean is i always get the directory, at which i
run the jythonc command to obtained .java and .class
files from .py files, hard-coded in the obtained .java
files. This ia quite inconvenient due to thus
hard-coded directory structure.
My question is there any way i could get aroun
this problem? Why it's like this? due to python or
jython? or I missed something when compile .py files
to .java files? I know nothing about both python and
jython. I appreciate if someone could give me a hand.
Thanks very much.
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
Get latest updates about Open Source Projects, Conferences and News.