my dog learned polymorphism*
The moose likes Beginning Java and the fly likes  package javax.mail does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " package javax.mail does not exist" Watch " package javax.mail does not exist" New topic
Author

package javax.mail does not exist

Patrick Noah
Greenhorn

Joined: Aug 22, 2011
Posts: 28
I put mail.jar and activation.jar in my CLASSPATH environment variable on winxp but when i compile my program I still get this error.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Are you sure they are in the classpath correctly?

What do you see when you type the command: echo %CLASSPATH%

Note that after changing environment variables in Windows (via Computer / Properties etc.), you have to close and re-open the command prompt window. It will not pick up changes to environment variables if you change them while the command prompt window is open.

What command exactly are you typing in to compile your code?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
jQuery in Action, 2nd edition
 
subject: package javax.mail does not exist
 
Similar Threads
What UML Tool(s) are you using for SCEA Beta Part II?
Which RSS reader do u use?
Beta Part II submission acknowledgement
Convincing the management
prisoner problem