aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 13868
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package javax.mail does not exist
 
Similar Threads
prisoner problem
Which RSS reader do u use?
What UML Tool(s) are you using for SCEA Beta Part II?
Convincing the management
Beta Part II submission acknowledgement