Solved

"java.lang.ClassFormatError: Illegal index in constant pool".... what does it mean?

Posted on 1999-01-28
5
981 Views
Last Modified: 2008-02-26
Hi all!!

This is a strange problem I think. When I run the applet locally, it works perfect, but when I run the applet from the web server, it doesn't with the error message of the subject.
If you can, go to http://flako.cjb.net/calendario.html to see the non-working applet. As I said, if I load in netscape the copy of the www page I have on my hard disk, the applet is executed good

I'd appreciate any help
Thanks a lot in advance

0
Comment
Question by:skel
  • 3
5 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 1234854
this is strange error...

what's your development platform (java IDE / compiler ? JDK version ? etc.)

please send me the .java files + compiled .class files at heyhey@nettaxi.com.
probably I can help you ...

best regards
  heyhey
0
 
LVL 1

Expert Comment

by:alvinwang
ID: 1234855
When you ftp your files up to your web server. Did you set Binary mode on ?

0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1234856
hi skel,

what compiler do you use
I still think that this is bad .class file format problem (because of bad / old / non-standard compiler) - .classes downloaded from the net are verified more carefully than local ones.
did you received my e-mail with another version of the .class file ?

regards
  heyhey
0
 

Author Comment

by:skel
ID: 1234857
Heyhey... I used your .class file and it works!! I use Symantec Cafe and in all pages I have compiled applets using it, maybe it has problems with array of constants.

Can it be dependent on the server? I had the applet formerly in a server of my university. I cannot test the new .class file on it yet until next monday. I test your .class file on other server and it worked... so I think in the old server will work too.

You can answer the question now :)
Bye
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 70 total points
ID: 1234858
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
print map entry 34 72
Maven Project: Hibernate Dependencies Conflict 10 38
even odd program using while loop 3 60
running on tomcat not jboss eap 7.0 3 18
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question