Issue1590440

classification
Title: Jythonc does not work in --jar mode 2.2a1
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, oniseijin
Priority: normal Keywords:

Created on 2006-11-04.12:27:21 by oniseijin, last changed 2009-03-14.01:05:51 by fwierzbicki.

Messages
msg1268 (view) Author: Ryan Mills (oniseijin) Date: 2006-11-04.12:27:21
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. 
msg1269 (view) Author: Ryan Mills (oniseijin) Date: 2006-11-04.13:04:30
Logged In: YES 
user_id=905575

Update:
Using jar trickery, I added the jython.jar to the Class-Path
in the new jar's manifest, that got me by the missing
PyObject problem. I also figured out the affect of
-Dpython.home= 

But then, it got down to the fact that the --jar does not work:

Exception in thread "main" Traceback (innermost last):
  File "/Users/ryan/bin/fxHistoryJ.py", line 0, in main
  File "/Users/ryan/bin/fxHistoryJ.py", line 0, in main
  File
"/usr/local/java/jythonRelease_2_2alpha1/Lib/urllib2.py",
line 0, in urlopen
  File
"/usr/local/java/jythonRelease_2_2alpha1/Lib/urllib2.py",
line 0, in open
  File
"/usr/local/java/jythonRelease_2_2alpha1/Lib/urllib2.py",
line 0, in _call_chain
TypeError: argument after ** must be a dictionary

Again, this does work when using jython, or compiling using
jythonc and running directly. 

I hope all my typing is seen as being useful ;)

I'd be happy to supply the code that I'm working with.
msg4275 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-14.01:05:51
jythonc is no longer maintained.
History
Date User Action Args
2009-03-14 01:05:51fwierzbickisetstatus: open -> closed
resolution: wont fix
messages: + msg4275
nosy: + fwierzbicki
2006-11-04 12:27:21oniseijincreate