[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: strange error



I don't know what's happening in your specific situation, but I have seen
this problem in the past:

I've seen ClassFormatErrors when an incompatible compression method has been
used to create the jar.  Most specifically, I saw this problem when WinZip
(v.4 or v.5; I can't remember) was used to create a .jar

If you're using an IDE or GUI packaging app, you may want to try it with the
command-line "jar" program included with Sun's JDK.

One of my colleagues has encountered this when working with an earlier
version of KlassMaster (2.3?)

With some more details about your JDK version and packaging method, maybe I
could help more.

-------------------------------------------------------------
Brian Sanders          Java Developer          Risk Labs, LLC
678-784-4614 voice                           678-784-4714 fax

-----Original Message-----
From: Jason R. Kretzer [mailto:jason@OpinionOne.com]
Subject: strange error


java.lang.ClassFormatError:  myClass (Bad index in constant pool #11)


Can someone tell me what causes these?  I can't seem to find much
information on the subject.

It happens after I create an executable jar and try to run it(from the
command line).

thanks!!

Jason R. Kretzer