Problem in receiving e-mail

Please help I found the error of "no provider for pop3" when I run the following program in my office (using proxy to internet but the pop3 a/c is work for my outlook to rcv e-mail). However, that's no error prompt out when running at home but nothing to display even there are two msgs in my inbox:

static String host = "pop.account.com";

static String username = "myuser";

static String password = "mypwd";

public static void main(String[] args) {

Properties props = new Properties();

Session session = Session.getDefaultInstance(props, null);

session.setDebug(debug);

Store store = session.getStore("pop3");

store.connect(host, username, password);

Folder folder = store.getFolder("INBOX");

folder.open(Folder.READ_ONLY);

Message message[] = folder.getMessages();

for (int i=0, n=message.length; i<n; i++) {

System.out.println(i + ": " + message.getFrom()[0] + "\t" + message.getSubject());

}

folder.close(false);

store.close();

.

.

.

Thanks in advance!

iSam

xml168@sinatown.com

>

[1162 byte] By [isam_hk] at [2007-9-26 2:42:27]
# 1
Does anyone know this problem?
isam_hk at 2007-6-29 10:19:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
hi!check out with the versions of javamail if possible use javamail-1.1.3 with pop3 providerand set the jar files in ur CLASSPATHhava a nice day
shony at 2007-6-29 10:19:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...