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 6863723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:49:17+00:00 2026-05-27T02:49:17+00:00

I have a Store class which is an array of Person; I have a

  • 0

I have a Store class which is an array of Person; I have a Person, Date, Student, Undergraduate and Postgraduate classes. Everything runs in Eclipse, and I have to run this from the Command Line. I’ve copied the src files and tried to run the main program, but it’s just saying it can’t find any of my classes. They are all in the same folder and in every class I have assigned the package. I’ve looked up importing classes and I tried:

    import oopinterface.Person;

etc for all classes.

Is there any way I can compile the main program so it will recognise the class files that are very clearly there!? I’m on Windows, but it would help if I could have the ‘other’ way for Linux?

This is the Compiler error:

   C:\Users\Liloka\Source\oopinterface>javac ContainerInterface.java
   ContainerInterface.java:41: cannot find symbol
   symbol  : class Store
   location: class oopinterface.ContainerInterface
            Store myList = new Store();

   //Instance of Store
                    ^
   ContainerInterface.java:688: cannot find symbol
   symbol  : class Person
   location: class oopinterface.ContainerInterface
            public Person getSupervisor()
                   ^

.. it goes on to pick at every method in other classes.. (39)
Thank you in advance!

  • 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-05-27T02:49:18+00:00Added an answer on May 27, 2026 at 2:49 am

    It looks like your classes are in the package oopinterface. Compile the source files from the base directory of the package, like this:

    C:\Users\Liloka\Source> javac oopinterface\ContainerInterface.java
    

    If you have the CLASSPATH environment variable set, then make sure that it is not set, or add the base directory of the package where the compiled class files can be found to the classpath. You can also use the -cp or -classpath option to tell javac where to find the compiled class files.

    Do all your source files have a package oopinterface; at the top of the file?

    After compiling, to run the program from the command line do something like this:

    java -cp C:\Users\Liloka\Source oopinterface.MainClass
    

    where MainClass is the class that contains the public static void main(String[] args) method. (This assumes that your compiled class files are in the same directory as the sources).

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

Sidebar

Related Questions

I have a program in which I need to store a Class object into
I have a class of students which I store into set in my cpp
I have defined a class in C++ which holds an array of scalars of
I have a dynamic class, which has an array declared normally, before runtime. Usually,
In C++, I have an Object class, from which a number of other classes
We have a class which manages many queues that store data. I want a
I have one main class main, which I use to store the configuration and
In both implementations, the containers have store a raw array of node_type which is
I have a std::multiset which stores elements of class A . I have provided
At the moment inside the class I have ArrayList which the objects are stored

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.