Solved

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

Posted on 1999-01-28
5
969 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_
Comment Utility
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
Comment Utility
When you ftp your files up to your web server. Did you set Binary mode on ?

0
 
LVL 16

Expert Comment

by:heyhey_
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now