Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:47:04+00:00 2026-06-13T06:47:04+00:00

I am working on a java mail client: import javax.mail.*; import javax.mail.internet.*; import java.util.*;

  • 0

I am working on a java mail client:

import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class MailClient {
    public static void main(String[] args) {
        try {
            Properties props = new Properties();
            Session session;

            URLName url = new URLName("pop3","pop.gmail.com",995,"","email@gmail.com","password");
            session = Session.getInstance(props, null);
            Store store = new POP3SSLStore(session,url);
            store.connect();

            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(message[i].getSubject());
            }
            folder.close(false);
            store.close();
        }
        catch (MessagingException e) {
            System.out.println("Error: " + e);
        }
    }
}

The error that is occurring is this:

MailClient.java:13: error: cannot find symbol
Store store = new POP3SSLStore(session,url);
symbol: class POP3SSLStore
location: class MailClient
1 error
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:47:05+00:00Added an answer on June 13, 2026 at 6:47 am

    You are missing an import:

    import com.sun.mail.pop3.POP3SSLStore;
    

    After that it should compile

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code is : // File Name SendEmail.java import java.util.*; import javax.mail.*; import javax.mail.internet.*;
import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.mail.event.*; import java.net.*;
I am working on an IMAP client using java mail. We currently have a
The Code I'm Using to send a simple mail import javax.mail.*; import javax.mail.internet.*; import
While working with Java, I find it hard to position my main window in
I'm working with java, trying to use the AudioFormat Class. I have the following
Java newbie. I am trying to run a java main class from cmd line
I have the following java class: package domain; //imports @Entity public class User {
I am working on Java Mail API and i need to develop a general
Im working on java, I have created an enum as follows: public enum myEnum

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.