Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » import is not recoganised
import is not recoganised [message #96214] Mon, 22 August 2005 06:39 Go to next message
Eclipse UserFriend
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 #96257 is a reply to message #96214] Mon, 22 August 2005 10:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeroen.verdrengh.student.kuleuven.be

project - properties - java build path - libraries: add jar or class folder
Re: import is not recoganised [message #96291 is a reply to message #96257] Mon, 22 August 2005 10:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aurphir.aurphir.com

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 #96305 is a reply to message #96291] Mon, 22 August 2005 12:12 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Problem debugging web project with another project dependency
Next Topic:Where does eclipse save the project info and preference info?
Goto Forum:
  


Current Time: Tue Apr 16 05:00:38 GMT 2024

Powered by FUDForum. Page generated in 1.54895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top