Eclipse error … cannot be resolved to a type

前端 未结 17 1727
清歌不尽
清歌不尽 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:35

    I was importing the source into the wrong folder. I'm so used to using Visual Studio, that I expect all IDE's to be so accommodating.

    0 讨论(0)
  • 2020-11-28 08:37

    I just closed all the files and reopened them, and voila!!! Hope this helps someone in the future ;)

    0 讨论(0)
  • 2020-11-28 08:38
    Project -> Build Path -> Configure Build Path
    Select Java Build path on the left menu, and select "Source"
     click on Excluded and then Include(All) and then click OK
        Cause : The issue might because u might have deleted the CLASS files 
     or dependencies on the project
    

    For maven users:

    Right click on the project

    Maven

    Update Project

    0 讨论(0)
  • 2020-11-28 08:41
    1. Right click your project name.

    2. Click Properties.

    3. Click Java Build Path.

    4. Click on Add Class Folder.

    5. Then choose your class.

    Alternatively, Add Jars should work although you claim that you attempted that.

    Also, "have you tried turning it off and back on again"? (Restart Eclipse).

    0 讨论(0)
  • 2020-11-28 08:41

    Also, there is the solution for IvyDE users. Right click on project -> Ivy -> resolve It's necessary to set ivy.mirror property in build.properties

    0 讨论(0)
提交回复
热议问题