我做了些调查,结果很奇怪。我的课:
Test.java:
package com.company;
import com.company.data.Byte;
import com.company.data.Class;
import com.company.zata.Long;
import com.company.zata.Short;
import com.company.data.*;
import com.company.zata.*;
public class Test {
Object o1 = new Class();
Object o2 = new So
我已经开始编写可以在Google app Engine上运行的应用程序。
但是当我想使用我的代码从Netbeans到Eclipse时,我遇到了一个错误:
import javax.servlet.annotation.WebServlet;
和
@WebServlet(name = "MyServlet", urlPatterns = {"/MyServlet"})
错误是:
The import javax.servlet.annotation cannot be resolved
WebServlet cannot be resolved to a type