No such provider exception..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, July 1, 2002 11:04 AM

Properties props = System.getProperties(); Session session = Session.getDefaultInstance(props, null); session.setDebug(true); // Get a Store object Store store = null; Folder rf = null; String url="pop3"+"://"+"john"+":"+password+"@"+mailhost.com; if (url != null) { URLName urln = new URLName(url); //it throws no such provider exception here //it throws no such provider exception here store = session.getStore(urln);//it throws no such provider exception here store.connect(); } String r="INBOX"; rf =store.getFolder(r); jLabel2.setText(r   More>>

Properties props = System.getProperties();
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
// Get a Store object



Store store = null;
Folder rf = null;
String url="pop3"+"://"+"john"+":"+password+"@"+mailhost.com;

if (url != null) {
URLName urln = new URLName(url);



//it throws no such provider exception here
//it throws no such provider exception here

store = session.getStore(urln);//it throws no such provider exception here
store.connect();
}
String r="INBOX";
rf =store.getFolder(r);

jLabel2.setText(rf.getName());



please write us what can cause this exception ...

   <<Less

Re: No such provider exception..

Posted By:   Eugene_Kuleshov  
Posted On:   Monday, July 1, 2002 05:52 PM

Hell, you not only didn't read the JavaMail installation guide, but also didn't paid a minimal attention to anyone who going to respond on your unformatted post. All directions were on the same page that you used to post this.



That error happend just because you didn't put all required JavaMail into classpath or jre/ext directory as described in the installation guide.
About | Sitemap | Contact