Eclipse error … cannot be resolved to a type

前端 未结 17 1860
清歌不尽
清歌不尽 2020-11-28 08:09

I have a dynamic web project that I am working on to migrate a jsp/servlet app from JRun to Tomcat.

I am getting the error: com.ibm.ivj.eab.dab.DatastoreJDBC<

17条回答
  •  眼角桃花
    2020-11-28 08:29

    For many new users don't forget to add an asterisk (*) after your import statements if you wanna use all the classes in a package....for example

    import java.io.*;
    
    public class Learning 
    {
        public static void main(String[] args) 
        {
            BufferedInputStream sd = new BufferedInputStream(System.in);
                // no error
        }
    }
    

    ================================================================

    import java.io;
    
    public class Learning 
    {
        public static void main(String[] args) 
        {
            BufferedInputStream sd = new BufferedInputStream(System.in);
                // BufferedInputStream cannot be resolved to a type error
        }
    }
    

提交回复
热议问题