Solved cannot be resolved to a type

Posted on 2006-05-11
Last Modified: 2012-08-13
Hi all:

I recently changed to a new PC and thus new eclipse installation. Now if I open my files with eclipse, there are error markings wherever I have:

The words: "" got underlined
The error message is: " cannot be resolved to a type"

What do I do to resolve this? Thanks.
Question by:sdc248
    LVL 86

    Accepted Solution

    You need to add the SQL Server driver jar to your build path
    LVL 1

    Expert Comment

    you have to put into path the .jar (driver sql)
    In eclipse you have to rigth click in the proyect and then properties/java build path/libraries and then you select the jar
    LVL 92

    Expert Comment

    > new

    that should be:


    Then you won't get a compile error

    to run it you actually need more than one jar

    you can download the jars here


    Author Comment

    problem solved. Thanks.

    Author Comment

    My old jars were located on C: of the old machine, thus the problem....
    LVL 86

    Expert Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    This video teaches viewers about errors in exception handling.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now