From: Dave K. <dku...@cu...> - 2006-02-17 01:37:51
|
Several questions: 1. I normally do my testing with Jython 2.2a, but someone asked me about installing Jython. I'm assuming that I should still be recommending Jython 2.1 for production work. Am I right about that? Or, do some of you use Jython 2.2a for real work? 2. I tried downloading and installing jython_21.class. When I do I get an exception: $ java -cp . jython_21 -o Jython-2.1 Exception in thread "main" java.lang.ClassFormatError: jython_21 (unused d at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int at java.security.SecureClassLoader.defineClass(java.lang.String, byte[] at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.s at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLo at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) That exception ("unused data before end of file") suggests that the downloaded file is corrupted. But, the downloaded file is the same size as that reported at SourceForge. And, I downloaded it several times with the same result each time. Does anyone have a suggestion? I'm on Linux (Ubuntu) with the following version of Java: $ java -version java version "1.4.2" gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9 Dave |
From: Alan K. <jyt...@xh...> - 2006-02-17 22:02:40
|
[Dave Kuhlman] > 2. I tried downloading and installing jython_21.class. When I do > I get an exception: > That exception ("unused data before end of file") suggests that > the downloaded file is corrupted. But, the downloaded file is > the same size as that reported at SourceForge. And, I > downloaded it several times with the same result each time. > > Does anyone have a suggestion? Can you tried installing from the file on a different platform, e.g. Windows or Mac? Or with a Sun JVM? That would eliminate the possibility of file corruption. HTH, Alan. |
From: Dave K. <dku...@cu...> - 2006-02-18 00:00:23
|
Alan Kennedy <jython-users <at> xhaus.com> writes: > > [Dave Kuhlman] > > 2. I tried downloading and installing jython_21.class. When I do > > I get an exception: > > > That exception ("unused data before end of file") suggests that > > the downloaded file is corrupted. But, the downloaded file is > > the same size as that reported at SourceForge. And, I > > downloaded it several times with the same result each time. > > > > Does anyone have a suggestion? > > Can you tried installing from the file on a different platform, e.g. > Windows or Mac? Or with a Sun JVM? > > That would eliminate the possibility of file corruption. > Alan - Thanks. That's a good suggestion. I do not have access to another platform. But, due to your prodding, I tried another Java SDK. I downloaded Java 2 SDK 1. 4.2 from java.sun.com. Using that version of Java, I was successfully able to install from the jython_21.class file. So, to summarize, with the following version of java: $ java -version java version "1.4.2" gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) Copyright (C) 2005 Free Software Foundation, Inc. I cannot install from the Jython_21.class file. But, with this version: $ ~/a1/Java/j2sdk1.4.2_10/bin/java -version java version "1.4.2_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) I can successfully install it. I believe this indicates that the problem is with the GNU version of java (gij ?) installed on my machine. So, I'll try to report the problem to that project. It also means (I think) that the Jython_21.class file at SourceForge is fine. But, I guess you already knew that. Thanks again for help. Dave |
From: Oti <oh...@gm...> - 2006-02-18 00:47:08
|
Hi Dave, if I remember correctly I had similar problems with gij on RedHat Linux. Runtime.exec() was not properly supported. So I too can only recommend to not use gij in production environments. Best wishes, Oti. On 2/18/06, Dave Kuhlman <dku...@cu...> wrote: [snipped] > So, to summarize, with the following > version of java: > > $ java -version > java version "1.4.2" > gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubu= ntu9) > > Copyright (C) 2005 Free Software Foundation, Inc. > > I cannot install from the Jython_21.class file. > > But, with this version: > > $ ~/a1/Java/j2sdk1.4.2_10/bin/java -version > java version "1.4.2_10" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) > Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) > > I can successfully install it. > > I believe this indicates that the problem is with the GNU version of java= (gij > ?) installed on my machine. So, I'll try to report the problem to that > project. > > It also means (I think) that the Jython_21.class file at SourceForge is f= ine. > But, I guess you already knew that. > > Thanks again for help. > > Dave |