Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Cannot be resolved to a type (packages importing)
Cannot be resolved to a type [message #798484] Tue, 14 February 2012 13:55 Go to next message
Eclipse UserFriend
hi,

I have an existing project that need to be imported to eclipse.
So I need to import source files and libraries (mostly .jar files)

So created a project in eclipse and import those files sucessfully. But the issue is I get errors like com.ibm cannot be resolved as type, javax.servlet cannot be resolved as type and so on for all the user libraries as well.
I have included these libraries in build path but still I get these error messages.

I have tried lots of solutions from google like windows->preferences->Installed java-> adding the installed jre ; refreshing the project but nothing worked.

Any help on this would be appreciated.

thanks
Murali
Re: Cannot be resolved to a type [message #798786 is a reply to message #798484] Tue, 14 February 2012 23:21 Go to previous messageGo to next message
Eclipse UserFriend
types which are been not resolved is because of package missing of those type, so you need to download the jars related to those type and add those to your build path .
Re: Cannot be resolved to a type [message #798905 is a reply to message #798786] Wed, 15 February 2012 03:05 Go to previous message
Eclipse UserFriend
Make sure that your project is also associated with an existing JRE.
Project Properties->Java Build Path-> Libraries and look for a JRE System Library and see that is good.
Previous Topic:Refactoring a Class Without Static Imports
Next Topic:Java EE Project
Goto Forum:
  


Current Time: Mon May 12 02:48:17 EDT 2025

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

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

Back to the top