Message1268

Author oniseijin
Recipients
Date 2006-11-04.12:27:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
2.2alpha1
OS X 10.4
Java 1.5.0_06

The --jar option does not create a jar that works. 

Exception in thread "main"
java.lang.NoClassDefFoundError: org/python/core/PyObject

Strange thing is, it all works if I using jython
<module>.py, or I compile using jythonc, and then call
java <module> in the jpywork directory

No matter what I do with the -cp or -classpath it does
not work.

----

I still can't sort out how the compiled java code (not
the --jar) is able to find the libraries in the
<jython22installdir>/Lib, but somehow it does. The
jython.jar MANIFEST.MF has no classpath entry.

Also, when I try and run java <module> on the code
directly, when it was made with --jar, even more
strange messages come up:

AttributeError: class 'org.python.modules.os' has no
attribute 'path'


I can understand that this is an alpha release, but it
baffles me why I can use it with jython, or
jythonc->java, but when I try and make a jar or package
to deploy it, it all blows up. 
History
Date User Action Args
2008-02-20 17:17:35adminlinkissue1590440 messages
2008-02-20 17:17:35admincreate