Results 1 to 4 of 4
Thread: Cannot use "import java.*"
- 02-02-2012, 04:51 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
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:
I received error: cannot resolve symbol java.Java Code:import java.applet.Applet; import java.awt.*;
Please help me to solve this problem.
thanks :)
- 02-02-2012, 05:11 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: Cannot use "import java.*"
Check that you have the SDK set as part of your project's settings. See this for example.
- 02-02-2012, 05:28 AM #3
Member
- Join Date
- Nov 2011
- Posts
- 27
- Rep Power
- 0
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
- 02-02-2012, 05:29 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Similar Threads
-
error importing " import org.eclipse.wb.swt.SWTResourceManager;"
By mlpehlivan in forum SWT / JFaceReplies: 1Last Post: 12-25-2011, 11:16 AM -
Got struck with this :- " Exception in thread "main" java.lang.NullPointerException"
By Vermont in forum New To JavaReplies: 5Last Post: 12-21-2011, 06:44 PM -
Error - "The import org.junit cannot be resolved"
By Jessaurum in forum New To JavaReplies: 7Last Post: 11-03-2009, 03:20 AM -
Eclipse "import not resolved" package problem?
By spamsickle in forum New To JavaReplies: 3Last Post: 08-24-2009, 11:44 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks