I am having a heck of a time importing my own
classes into my servlet.
Under Windows 2000 Pro and using ANT, I have no
problem importing standard classes, but importing my own classes consistently
gets an error.
I have the following import
statements:
import
java.io.*;
import
java.text.*; import
java.util.*; import
javax.servlet.*; import
javax.servlet.http.*; import
org.xml.sax.SAXException; import
org.xml.sax.InputSource; import
dgi.CCMsg;
The final import statement generates the following error
message:
"-cannot access dgi.CCMsg
-bad class file:
c:\jakarta-tomcat-4.0.3\common\classes\dgi\CCMsg.class
-class file contains wrong class: CCMsg
-Please remove or make sure it appears in the correct
subdirectory of the classpath
-import dgi.CCMsg"
Obviously the compiler is finding my CCMsg.class, line two in
the error message includes the correct path to my class.
Anybody have any ideas?
Thanks!
Frank
|
- Re: Servlet Compile problem: Bad Class File Frank Welch
- Re: Servlet Compile problem: Bad Class File Verhoef, Frans
- Re: Servlet Compile problem: Bad Class File Shonk, Richard
- Re: Servlet Compile problem: Bad Class File Balasubramaniyan K