Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1999-01-28
5
Medium Priority
?
1,010 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 280 total points
ID: 1234858
thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

783 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