i hv error in servlet (java),plz anyone help me? - TechRepublic
Question
March 8, 2010 at 03:30 AM
nvprt13

i hv error in servlet (java),plz anyone help me?

by nvprt13 . Updated 16 years, 4 months ago

C:\Users\HP>d:

D:\> cd D:\app\WEB-INF\classes

D:\app\WEB-INF\classes>javac MyServer.java
MyServer.java:4: cannot access javax.servlet.Servlet
bad class file: D:\Tomcat 6.0\lib\servlet-api.jar(javax/servlet/Servlet.class)
class file has wrong version 49.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
public class MyServer implements Servlet
^
1 error
this error cme whem am open tomcat server,and also not compile java file,above error is cme,any body tell me about this.?

This discussion is locked

All Comments