Wrong version of libreadline-java in dependencies

Bug #164800 reported by Michael Hirsch
6
Affects Status Importance Assigned to Milestone
jython (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Jython claims to depend on libreadline-java version 60 or higher. One my AMD-64 Gutsy installation, libreadline-java version 80 was installed.

When I try to run anything with jython, even 'print "Hello world"' I get this error indicating that version 49 or libreadline-java was needed:
[532] Python> ./simple.py
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/gnu/readline/ReadlineLibrary (Unsupported major.minor version 49.0)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at org.python.util.ReadlineConsole.<init>(ReadlineConsole.java:23)
 at org.python.util.ReadlineConsole.<init>(ReadlineConsole.java:13)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:308)
 at java.lang.Class.newInstance(Class.java:261)
 at org.python.util.jython.main(jython.java:92)

Jython is completely useless to me now.

Revision history for this message
kriss (kriss) wrote :

Same here (32 Bit Gutsy) :-(

Revision history for this message
grayFalcon (falka777) wrote :

"Unsupported major.minor version 49.0" means that the library you are trying to use needs at leas java 1.5, but you only have 1.4. So you need to either install a newer version of java (I'd go with sun java - it's rather painless to install, and the gnu implementation sucks anyways), or you need to get an older version of readline-java and recompile it with java 1.4. I recompiled libreadline-java-0.7.2 from source, and it works fine.

Greets,
-grayFalcon

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in jython:
status: New → Incomplete
Revision history for this message
Michael Hirsch (mdhirsch) wrote :

This issue has gone away for me with 8.10. The same simple.py program runs as expected.

Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status . Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in jython (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.