Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1999-01-28
5
Medium Priority
?
1,004 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 280 total points
ID: 1234858
thanks
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

715 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