Eclipse error … cannot be resolved to a type

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

    For maven users:

    • Right click on the project
    • Maven
    • Update Project
    0 讨论(0)
  • 2020-11-28 08:15

    Solved the problem by dropping the jar into WEB_INF/lib.

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

    copying the jar files will resolve. If by any chance you are copying the code from any tutorials, make sure the class names are spelled in correct case...for example i copied a code from one of the tutorials which had solr in S cap. Eclipse was continiously throwing the error and i also did a bit of googling ...everything was ok and it took 30 mins for me to realise the cap small issue. Am sure this will help someone

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

    First you need to update the pom.xml by adding below

        <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>4.1.6.RELEASE</version>
        </dependency>
    

    1] Right click your project name.

    2] Click Properties.

    3] Click Java Build Path.

    4] Check on 'Maven Dependencies' in Order and Export tabl.

    In my case, previously it was not enabled. So when I enabled it my @GetMapping annotation works fine..

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

    Project -> Clean

    can at least sometimes be sufficient to resolve the matter.

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

    Solution : 1.Project -> Build Path -> Configure Build Path

    2.Select Java Build path on the left menu, and select "Source"

    3.Under Project select Include(All) and click OK

    Cause : The issue might because u might have deleted the CLASS files or dependencies on the project

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