import is not recoganised [message #96214] |
Mon, 22 August 2005 06:39 |
Eclipse User |
|
|
|
Originally posted by: aurphir.aurphir.com
Hi all
I am using eclipse 3.1 and it doesn't recoganizes
the following import statement
import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
any ideas??
Vishal
|
|
|
|
|
Re: import is not recoganised [message #96305 is a reply to message #96291] |
Mon, 22 August 2005 12:12 |
Eclipse User |
|
|
|
Originally posted by: akiezun.remove.mit.edu
what does the error message say?
/adam
Vishal Rana wrote:
> that's not the problem it complies perfectly
> but just it shows everything red underline in the editor related to
>
> import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
>
> "Jeroen" <jeroen.verdrengh@student.kuleuven.be> wrote in message
> news:dec8ll$bl2$1@news.eclipse.org...
>
>>project - properties - java build path - libraries: add jar or class
>
> folder
>
>>
>
>
|
|
|
Re: import is not recoganised [message #96320 is a reply to message #96305] |
Mon, 22 August 2005 12:42 |
Eclipse User |
|
|
|
Originally posted by: aurphir.aurphir.com
I am using like TimeUnit.HOURS where TimeUnit is a class from
edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
and it says it cannot be resolved in the problems view
but don't know why every thing complies perfectly just I am gettting
irritated in all the files wherever I have used object of this TimeUnit
class
that is red underlined
any help???
"Adam Kiezun" <akiezun@remove.mit.edu> wrote in message
news:decfek$kbm$1@news.eclipse.org...
> what does the error message say?
> /adam
>
> Vishal Rana wrote:
> > that's not the problem it complies perfectly
> > but just it shows everything red underline in the editor related to
> >
> > import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
> >
> > "Jeroen" <jeroen.verdrengh@student.kuleuven.be> wrote in message
> > news:dec8ll$bl2$1@news.eclipse.org...
> >
> >>project - properties - java build path - libraries: add jar or class
> >
> > folder
> >
> >>
> >
> >
>
|
|
|
Re: import is not recoganised [message #96495 is a reply to message #96320] |
Mon, 22 August 2005 14:31 |
Eclipse User |
|
|
|
Originally posted by: eclipse3.rizzoweb.com
Vishal Rana wrote:
> I am using like TimeUnit.HOURS where TimeUnit is a class from
>
> edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
>
> and it says it cannot be resolved in the problems view
>
> but don't know why every thing complies perfectly just I am gettting
> irritated in all the files wherever I have used object of this TimeUnit
> class
> that is red underlined
As others have been trying to tell you, the red underlines and message
in the Problems view are indicators that compilation is NOT successful.
HTH,
Eric
|
|
|
Re: import is not recoganised [message #96837 is a reply to message #96214] |
Tue, 23 August 2005 14:37 |
Eclipse User |
|
|
|
Originally posted by: callum.devnet-uk.net
The first reply is the most likely solution.
If you are using a custom
(edu.emory.mathcs.backport.java.util.concurrent.TimeUnit) library you need
to tell Eclipse where it is so it can be used.
To this you need to:
project -> properties -> java build path -> libraries: add jar or class
folder
There is a red line under the import statement and everywhere that
TimeUnit is used since it cannot find ("Cannot be resolved") the TimeUnit
class, which is in the package
edu.emory.mathcs.backport.java.util.concurrent.
You need to either get hold of the JAR file or have access to the code. In
either case, it needs to be added to the classpath of the project wanting
to use it.
|
|
|
Powered by
FUDForum. Page generated in 0.09019 seconds