*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse loosing class imports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse loosing class imports" Watch "Eclipse loosing class imports" New topic
Author

Eclipse loosing class imports

Jeremy James Brown
Greenhorn

Joined: Mar 24, 2011
Posts: 27
I've been working with the google appengine api with Eclipse 3.6.2 Enterprise Edition to create some servlets and jsp. I keep getting spontaneous import errors with Java EE imports. Before all EE imports would become errors. Now I have a "missing type error" on EntityManagerService.get() I'm new to servlet and EE and I'm hoping for an answer.



EntityManger is clearly listed in the imports



The .get() method is highlighted red. Hovering over it shows...



But adding the import for



Doesn't help and Eclipse lists it an an unused import

My servlet was compiling and working just fine before. Thanks!


Jeremy James Brown
Greenhorn

Joined: Mar 24, 2011
Posts: 27
Downloading a new appengine SDK solved the issue but I don't get it. Isn't javax an EE package?
Jeremy James Brown
Greenhorn

Joined: Mar 24, 2011
Posts: 27
More of the same type of BS errors. Now the project won't compile because of a missing servlet jar. I've copied a servlet-api-2.3.jar to the WEB-INF folder but I still get errors.

I'm sorry to say it but Eclipse is really a PITA.
Jeremy James Brown
Greenhorn

Joined: Mar 24, 2011
Posts: 27
I've realized what the issue is here. I'm running my workspace from Dropbox which always worked on netbeans, and worked on eclipse until I started using plugins. I put the appegine SDK in the /dropbox/workspace and hopefully this is over and I've learned something. Eclipse doesn't use environment variables the same way netbeans does.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse loosing class imports
 
Similar Threads
My binding with datatable give me null ate the backing bean, do i miss some thing
Exception in deployment of ejb ear
Serious error in JPA with @Version
Hibernate and Struts 2 question
problem while executing user defined method within a servlet