|Re: import is not recoganised [message #96837 is a reply to message #96214]
||Tue, 23 August 2005 14:37
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
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
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.03214 seconds