XML Feeds

.

[java-dev] net.mail problems

ivan marusic i.m.klif at gmail.com
Wed Mar 5 16:31:55 MST 2008



i use max for aprox 10 years, but i have no knowledge of java, and i need some help here.

trying to load net.mail help files, i get the following errors:

• error: java.lang.NoClassDefFoundError: javax/mail/MessagingException
• error: (mxj) unable to alloc instance of net.mail.send
• error: java.lang.NoClassDefFoundError: javax/mail/MessagingException
• error: (mxj) unable to alloc instance of net.mail.recv


i found some info in java tutorials (tutorial 9)- it seemed i miss some libraries.  i managed to install java.mail - i simply copied mail.jar to java/lib directory. i'm lost when it comes to  "JavaBeans Activation Framework". I have no idea what to download and how to install......



with only mail.jar installed, net.mail.recv initiates fine, but still fails to check mail. i get the following errors:

javax.mail.MessagingException: Connect failed;
  nested exception is:
	java.net.ConnectException: Operation timed out
	at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:161)
	at javax.mail.Service.connect(Service.java:288)
	at javax.mail.Service.connect(Service.java:169)
	at net.mail.recv.saveMessage(recv.java:43)
Caused by: java.net.ConnectException: Operation timed out
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430)
	at java.net.Socket.connect(Socket.java:520)
	at java.net.Socket.connect(Socket.java:470)
	at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
	at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
	at com.sun.mail.pop3.Protocol.<init>(Protocol.java:94)
	at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:214)
	at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:157)
	... 3 more
exceptions: javax.mail.MessagingException: Connect failed;
  nested exception is:
	java.net.ConnectException: Operation timed out 



More information about the java-dev mailing list