0

I have a servlet & a class sitting in the same package on a NetBeans web project. (these class locations are for example only-- this is nowhere near my ideal organization of classes.)

In the servlet, everything is alright-- it is seeing javax and whatever i'm looking for in it.

However, in the plain java class, it's not even recognizing the imports-- giving me "Package javax.* does not exist" let alone fixing the imports itself.

What's missing here?

EDIT: I've seen java.lang.NoClassDefFoundError: javax/mail/Authenticator, whats wrong? along with some other discussions.

Community
  • 1
  • 1
user3401132
  • 139
  • 8
  • It might be something out of sync, try clearing [Netbeans cache](http://stackoverflow.com/questions/8689780/how-to-clear-the-cache-in-netbeans). – taringamberini Mar 14 '14 at 22:02

1 Answers1

0

Added the javax.mail jars to the project lib.

Netbeans must be using the libraries depending on the type of the project and the classes

user3401132
  • 139
  • 8