Java Mail not working
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prashant_Bhatia
Posted On:   Wednesday, July 2, 2003 05:08 AM

Hi I am using JavaMail 1.3. It was working fine until now. I made somechanges in my bean and now it is not compiling. It refuses to find javax.mail etc. The errors I am getting are: E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:3: package javax.mail does not exist import javax.mail.*; //JavaMail packages ^ E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:4: package javax.mail.internet does not exist import javax.mail.internet.*; //JavaMail Internet packages ^ E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:23: cannot resolve symbol symbol : class Session location: class sp   More>>

Hi

I am using JavaMail 1.3. It was working fine until now. I made somechanges in my bean and now it is not compiling. It refuses to find javax.mail etc. The errors I am getting are:

			
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:3: package javax.mail does not exist
import javax.mail.*; //JavaMail packages
^
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:4: package javax.mail.internet does not exist
import javax.mail.internet.*; //JavaMail Internet packages
^
E:jakarta-tomcat-4.1.24webappssparshaWEB-INFclassessparsha1mailMailBean.java:23: cannot resolve symbol
symbol : class Session
location: class sparsha1.mail.MailBean
Session l_session = Session.getDefaultInstance(l_props, null);
^

etc.



I had installed JavaMail1.3 and then copied the mail.jar and activation.jar into javadir/jre/lib/ext .

The classpath I gave was the same ie

javafolder/jre/lib/ext for both mail& activation.jar.

I don't think I made any changes lately in my classpath.

Can anyone tell me what have I done

Thanks in advance

Regards

Prashant Bhatia    <<Less

Re: Java Mail not working

Posted By:   Eugene_Kuleshov  
Posted On:   Wednesday, July 2, 2003 08:50 AM

You pretty much using the different JRE, then the one where you have put your jars. On windows there are two JRE installed: one within JDK and another one is within "Program Files" directory and it is the default one.
About | Sitemap | Contact