Issue1632375

classification
Title: Jython 2.1 installer fails with Java 6: ClassFormatError
Type: Severity: normal
Components: Installer Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, drhok, kzuberi
Priority: normal Keywords:

Created on 2007-01-10.13:40:17 by drhok, last changed 2007-02-11.03:45:59 by cgroves.

Messages
msg1384 (view) Author: Heiko Selber (drhok) Date: 2007-01-10.13:40:17
I cannot install jython_21.class on my PC (WinXP) using Java 6 ('java jython_21').

Here is the stack trace:

Exception in thread "main" java.lang.ClassFormatError: Extra bytes at the end of class file jython_21
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

It works fine with Java 5.
msg1385 (view) Author: Khalid Zuberi (kzuberi) Date: 2007-01-10.20:10:29
This is a duplicate of 1615929, which is marked as closed/wont fix. Your options are to use an older java, or if you can tolerate pre-release code to use one of the jython 2.2 snapshots. 

A further possibility, if you must use jython 2.1 with java6, is to try installing with an older java, but then running the installed jython with java6 (you'll need to update the path in jython.bat).

This issue needs a FAQ entry, leaving it open as a reminder to write one.

- kz
msg1386 (view) Author: Heiko Selber (drhok) Date: 2007-01-12.14:39:52
Oops, sorry I didn't find the original report.

Anyway, the problem here is that the Java scripting site https://scripting.dev.java.net/ explicitly mentions Jython 2.1 as the implementation for Python scripting.

I think an entry in the FAQ would be quite urgent to help people avoid this. I for one wouldn't use a prerelease snapshot without explicitly being told so.

Actually, I am surprised that it doesn't work with Java 6. I was under the impression that one goal of Java 6 was to be more backward compatible than previous releases.
msg1387 (view) Author: Charlie Groves (cgroves) Date: 2007-02-11.03:45:59
The 2.1 download listing now mentions this, so I'm closing it
History
Date User Action Args
2007-01-10 13:40:17drhokcreate