Title: java.lang.ClassFormatError

I had a simple servlet program compile under jdk1.2 rc1 and jsdk 2.0.Then I run from HTML. It run ok under DOS servletrunner with localhost. 

Now I download the jdk1.2.1 and recompile. Th servlet program compiles fine. But when I run the program from HTML with jsdk2.0 and localhost  I got ClassFormatError.

Same error if I use jdk1.1.8 with jsdk2.0. Anyone has same error? How you solve it problem. Please let me know.


Thank in advance


java.lang.ClassFormatError
        at sun.servlet.ServletLoader.loadClass(ServletLoader.java:230)
        at sun.servlet.ServletLoader.loadServlet(ServletLoader.java:91)
        at sun.servlet.http.HttpServer.getServlet(HttpServer.java:326)
        at sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.jav
a:152)
        at sun.servlet.http.HttpServerHandler.handleConnection(Compiled Code)
        at sun.servlet.http.HttpServerHandler.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:466)

Reply via email to