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: The import com.sun.jna cannot be resolved error

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default The import com.sun.jna cannot be resolved error

    Hello.

    Today i was downloaded eclipse and i want to work with com.sun.jna.platform.win32.Advapi32Util;.
    But in eclipse i get this error The import com.sun.jna cannot be resolved. Anyone knows how to fix it?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: The import com.sun.jna cannot be resolved error

    Find what jar file has that class in it, download it and make sure that that jar file is available to your IDE.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2021
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: The import com.sun.jna cannot be resolved error

    Ok i imported the .jar's from the internet now i got second error.

    Error: Could not find or load main class ad.k
    Caused by: java.lang.ClassNotFoundException: ad.k

    Anybody can help?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: The import com.sun.jna cannot be resolved error

    Did you try asking google about that class?

    It has a shorter name than I have ever seen for a class. What program gave that error?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Eclipse: The import com.ms cannot be resolved.
    By theBoolean in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 19th, 2019, 02:24 PM
  2. import javax.servlet.HttpServletRequest cannot be resolved
    By poovalingam in forum Java Servlet
    Replies: 1
    Last Post: October 14th, 2013, 01:50 AM
  3. 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, 06:39 PM
  4. "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, 03:09 PM
  5. Error msg : 'pageContext' cannot be resolved in tag file....
    By saikrishna436 in forum JavaServer Pages: JSP & JSTL
    Replies: 5
    Last Post: September 8th, 2009, 07:58 AM