Solved

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

Posted on 1999-01-28
5
989 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 70 total points
ID: 1234858
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
junit example issue 2 59
Coding for the first time 9 104
Java regex 5 22
How do i find out all classes which contain nested class 2 18
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

710 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