Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By pbrockway2

Thread: Cannot use "import java.*"

  1. #1
    hqt
    hqt is offline Member
    Join Date
    Nov 2011
    Posts
    27
    Rep Power
    0

    Question Cannot use "import java.*"

    I'm changing to Linux and continue use Intellij IDEA. and my linux use JDK 1.7. I don't know why IDEA doesn't recognize java default package.
    So I cannot import something like:
    Java Code:
    import java.applet.Applet;
    import java.awt.*;
    I received error: cannot resolve symbol java.
    Please help me to solve this problem.

    thanks :)

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Cannot use "import java.*"

    Check that you have the SDK set as part of your project's settings. See this for example.
    hqt likes this.

  3. #3
    hqt
    hqt is offline Member
    Join Date
    Nov 2011
    Posts
    27
    Rep Power
    0

    Default Re: Cannot use "import java.*"

    Oh. my problem is so frustate. your tutorial that you give me is very simple tutorial. I don't know how to thank to you :D

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

Similar Threads

  1. Replies: 1
    Last Post: 12-25-2011, 12:16 PM
  2. Replies: 5
    Last Post: 12-21-2011, 07:44 PM
  3. Error - "The import org.junit cannot be resolved"
    By Jessaurum in forum New To Java
    Replies: 7
    Last Post: 11-03-2009, 04:20 AM
  4. Eclipse "import not resolved" package problem?
    By spamsickle in forum New To Java
    Replies: 3
    Last Post: 08-24-2009, 12:44 PM
  5. Replies: 1
    Last Post: 10-20-2008, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •