Issue1849

classification
Title: Importing Java packages from java.ext.dirs is not working
Type: Severity: normal
Components: Versions: Jython 2.5
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, zyasoft
Priority: normal Keywords:

Created on 2012-03-14.21:22:09 by fwierzbicki, last changed 2014-10-06.03:31:27 by zyasoft.

Messages
msg6795 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2012-03-14.21:22:08
[frank 2.5]$ ./dist/bin/jython -Djava.ext.dirs=/home/frank/jars/
*sys-package-mgr*: processing new jar, '/home/frank/jars/piggybank.jar'
Jython 2.5.3+ (2.5:5fa0a5810b25, Mar 14 2012, 14:01:25) 
[OpenJDK 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_23
Type "help", "copyright", "credits" or "license" for more information.
>>> import org.apache.pig.piggybank.evaluation.datetime.convert as convert
>>> dir(convert)
['CustomFormatToISO', 'ISOToUnix', 'UnixToISO', '__name__']
>>> convert.UnixToISO
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'javapackage' object has no attribute 'UnixToISO'
>>>
msg9100 (view) Author: Jim Baker (zyasoft) Date: 2014-10-06.03:31:27
So there is a ready workaround by adding the jar to sys.path, but it would be nice to have this working again (presumably it did in the past)
History
Date User Action Args
2014-10-06 03:31:27zyasoftsetpriority: high -> normal
nosy: + zyasoft
messages: + msg9100
2013-02-25 19:07:52fwierzbickisetresolution: accepted ->
versions: + Jython 2.5, - 2.5.2
2012-03-14 21:23:37fwierzbickisetpriority: high
assignee: fwierzbicki
resolution: accepted
versions: + 2.5.2
2012-03-14 21:22:09fwierzbickicreate