user3552862
user3552862

Reputation: 67

My Java EE Eclipse doesn't recognize Java EE libraries

I am using Java EE Eclipse and I have also installed the Java EE JDK, but still in my servlet while importing javax.servlet.*, Eclipse doesn't recognize it.

What do you think might be wrong?

Upvotes: 3

Views: 1793

Answers (1)

Alvin Thompson
Alvin Thompson

Reputation: 5438

Not an answer yet--just need the bigger format.

Please verify the following things in your project properties (right-click on the project, then Properties from the context menu):

  • Java Build Path-->Libraries
    • Verify that "Apache Tomcat 7.0" is present in the list.
    • Expand the Tomcat node and verify there are a bunch of jar files there, and none have red badges on them.
  • Project Facets
    • Verify "Dynamic Web Module", "Java", and "JavaScript" are checked.
  • Targeted Runtimes
    • Verify "Apache Tomcat 7.0" is checked.

Also verify these things under Preferences:

  • Server-->Runtime Environments
    • Verify Apache Tomcat 7.0 is listed (it should be if above is correct).
    • Select the Tomcat item and click the Edit button. Verify the path to you Tomcat install is correct. While you're here, you may as well verify the JRE is correct.

Upvotes: 4

Related Questions