File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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: 14194
    
  20

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 8 API documentation
 
GeeCON Prague 2014
 
subject: package javax.mail does not exist