Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Eclipse: The import com.ms cannot be resolved.

  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Eclipse: The import com.ms cannot be resolved.

    I have an old java source code that I am trying to compile in eclipse. Now that I imported the java files into an eclipse project it says an error that The import com.ms cannot be resolved at import com.ms.wfc.data.*;. It seems like it is using very old database management module as written in the connection string:
    public static String strConnPart1 = "Provider=Microsoft.Jet.OLEDB.4.0;Password=\"\";User ID=Admin;Data Source=";
    I've been searching for hours I can't find the library. Can somebody help please? Thank you.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,328
    Thanks
    53
    Thanked 2,393 Times in 2,347 Posts

    Default Re: Eclipse: The import com.ms cannot be resolved.

    You may have to rewrite the code to use more modern classes.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2017
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Eclipse: The import com.ms cannot be resolved.

    I was thinking about it, but first I want to be sure if it is working before moving to migrate the whole database connection method, because it will take long time and I won't invest time in something that doesn't work, so... I guess I just need to find that .jar library:
    import com.ms.wfc.data.Field;
    import com.ms.wfc.data.Recordset;
    However I am looking for like a couple of hours and so far I found nothing

  4. #4
    Member
    Join Date
    Apr 2014
    Posts
    81
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: Eclipse: The import com.ms cannot be resolved.

    Taking a wild guess here, but I believe this is looking for a Java wrapper for Windows Foundation Classes, which may have only existed in Microsoft's proprietary JVM before the whole antitrust lawsuit thing.

    https://news.microsoft.com/1998/03/1...ation-classes/

    https://en.wikipedia.org/wiki/Micros...irtual_Machine

    If that's the case, you may never get the old one working on a modern OS.

Similar Threads

  1. import javax.servlet.HttpServletRequest cannot be resolved
    By poovalingam in forum Java Servlet
    Replies: 1
    Last Post: October 14th, 2013, 01:50 AM
  2. Error: The import java.swing cannot be resolved [in drJava]
    By ArcticOokami in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 24th, 2012, 05:39 PM
  3. "The import ___ cannot be resolved" (stupid noob question)
    By RobG in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 18th, 2010, 02:09 PM
  4. Pb import Eclipse Java Yaps Petstore
    By azerty@123450 in forum Java IDEs
    Replies: 1
    Last Post: May 4th, 2010, 09:16 PM
  5. Problem in import com. in eclipse
    By java_cs in forum What's Wrong With My Code?
    Replies: 6
    Last Post: September 11th, 2009, 07:26 AM