Need Help w/JPython deployment

Scott Bortman scott at csihq.com
Mon Apr 24 11:35:38 EDT 2000


Hello,

I am having a bit of difficulty using jpythonc.

I have a script I want to deploy and I want to
have everything it needs in a single jar file.  This
is because JPython is NOT on the machine I want
to run the script (but Java is).

Here's the options I've tried using:

--deep
--all
--compiler <path to my javac>
--jar <target jar filename>

And then the name of my script:

<scriptname>.py

But, I get the following error:

processing npp_lab_status_mai

Required packages:
  java.lang
  java.text*
  java.sql*
  java.util*

Creating adapters:

Creating .java files:
  npp_lab_status_mai module

Compiling .java to .class...
Compiling with args: ['h:\\jdk1.3\\bin\\javac', '-classpath',
'H:\\JPython-1.1\\jpython.jar;I:\\JClass36J\\lib\\jcchart361J.jar;I:\\JClass
36J;;h:\\jbuilder3\\beans\\classes12.zip',
'.\\jpywork\\npp_lab_status_mai.java']
0
Building archive: npp_lab_status_mai.jar
Tracking java dependencies:
Traceback (innermost last):
  File "H:\JPython-1.1\Tools\jpythonc2\jpythonc.py", line 5, in ?
  File "H:\JPython-1.1\Tools\jpythonc2\main.py", line 291, in main
  File "H:\JPython-1.1\Tools\jpythonc2\main.py", line 284, in writeResults
  File "H:\JPython-1.1\Tools\jpythonc2\jar.py", line 86, in dump
  File "H:\JPython-1.1\Tools\jpythonc2\jar.py", line 80, in dumpFiles
  File "H:\JPython-1.1\Tools\jpythonc2\jar.py", line 94, in addOneClass
AttributeError: java package 'org.python.modules' has no attribute
'__path__'


Is there something I missed?

Thanks in advance,
scottie






More information about the Python-list mailing list