[求助]lervlet的问题
我想编译这个不成功.package test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Test extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out=response.getWriter();
out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
out.flush();
}
}
C:\java\text.java:1: 非法字符: \12288
package text;
^
C:\java\text.java:2: 非法字符: \12288
import java.io.IOException;
^
C:\java\text.java:2: 非法字符: \12288
import java.io.IOException;
^
C:\java\text.java:3: 非法字符: \12288
import java.io.PrintWriter;
^
C:\java\text.java:3: 非法字符: \12288
import java.io.PrintWriter;
^
C:\java\text.java:4: 非法字符: \12288
import javax.servlet.ServletException;
^
C:\java\text.java:4: 非法字符: \12288
import javax.servlet.ServletException;
^
C:\java\text.java:5: 非法字符: \12288
import javax.servlet.http.HttpServlet;
^
C:\java\text.java:5: 非法字符: \12288
import javax.servlet.http.HttpServlet;
^
C:\java\text.java:6: 非法字符: \12288
import javax.servlet.http.HttpServletRequest;
^
C:\java\text.java:6: 非法字符: \12288
import javax.servlet.http.HttpServletRequest;
^
C:\java\text.java:7: 非法字符: \12288
import javax.servlet.http.HttpServletResponse;
^
C:\java\text.java:7: 非法字符: \12288
import javax.servlet.http.HttpServletResponse;
^
C:\java\text.java:8: 非法字符: \12288
public class Text extends HttpServlet {
^
C:\java\text.java:8: 非法字符: \12288
public class Text extends HttpServlet {
^
C:\java\text.java:9: 非法字符: \12288
protected void doGet(HttpServletRequest request, HttpServletResponse response)
^
C:\java\text.java:9: 非法字符: \12288
protected void doGet(HttpServletRequest request, HttpServletResponse response)
^
C:\java\text.java:10: 非法字符: \12288
throws ServletException, IOException {
^
C:\java\text.java:10: 非法字符: \12288
throws ServletException, IOException {
^
C:\java\text.java:11: 非法字符: \12288
PrintWriter out=response.getWriter();
^
C:\java\text.java:11: 非法字符: \12288
PrintWriter out=response.getWriter();
^
C:\java\text.java:12: 非法字符: \12288
out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
^
C:\java\text.java:12: 非法字符: \12288
out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
^
C:\java\text.java:13: 非法字符: \12288
out.flush();
^
C:\java\text.java:13: 非法字符: \12288
out.flush();
^
C:\java\text.java:14: 非法字符: \12288
}
^
C:\java\text.java:14: 非法字符: \12288
}
^
C:\java\text.java:15: 非法字符: \12288
}
^
C:\java\text.java:15: 非法字符: \12288
}
^
C:\java\text.java:15: 需要 <标识符>
}
^
C:\java\text.java:16: 非法字符: \12288
^
C:\java\text.java:16: 非法字符: \12288
^
C:\java\text.java:16: 需要 "class" 或 "interface"
这是什么原因!!!!!