File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Cannot find class javax/mail/message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Cannot find class javax/mail/message" Watch "Cannot find class javax/mail/message" New topic
Author

Cannot find class javax/mail/message

Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Hi there. I have an application that I am using to send email to users to notify them of certain events. It works perfectly fine if I am running JRE 1.6_12...... however once I upgraded to JRE 1_6_15 it now says it cannot find the class javax/mail/Message. I have all of the JavaMail jar files exported with my .jar file. JavaMail version is 1.4.1. Any ideas why all of a sudden this wouldn't work with the new JRE update?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

My guess is that whoever set up that application took a shortcut and just dropped the JavaMail jars into the extensions directory of the JRE. Then you installed a new JRE, and its extensions directory doesn't contain the JavaMail jars, so now the application can't find them.
Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Actually I am the one who set this up. I didn't drop the jars into the JRE ext directory. (I double checked just to make sure ) I'm actually using Eclipse to develop the project. Within that project in eclipse I imported the JavaMail jar files as reference libraries and exported everything into one jar. This app has been running fine on JRE 1.6.11 and 1.6.12 and 1.6.13. It just blew up when one user installed JRE 1.6.15. I'm stumped.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find class javax/mail/message