Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Cannot find symbol error in my java code

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    23
    My Mood
    Bored
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Cannot find symbol error in my java code

    My person class in package DBManager is giving an ArrayList<Person> error..as cannot find symbol. I've recheck and recheck still cannot find a way. Please help...

    cannot find symbol
    symbol: variable ArrayList
    location : class Person

    cannot find symbol
    symbol: variable Person
    location : class Person


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,386
    Thanks
    49
    Thanked 2,208 Times in 2,181 Posts

    Default Re: Cannot find symbol error in my java code

    Where are those symbols (classes ???) defined? The compiler can not find their definition.

    Please post the full text of the error message that shows the source line. For example:
     
    TestCode12.java:566: error: cannot find symbol
          AerryList<NoClass> test;
          ^
      symbol:   class AerryList
      location: class TestCode12
    TestCode12.java:566: error: cannot find symbol
          AerryList<NoClass> test;
                    ^
      symbol:   class NoClass
      location: class TestCode12

    Without seeing the code I also can not see where those symbols are defined.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Error:Cannot find Symbol
    By Leonardo1143 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 13th, 2013, 05:40 PM
  2. Cannot find symbol ERROR
    By yacek in forum What's Wrong With My Code?
    Replies: 8
    Last Post: October 21st, 2011, 11:39 PM
  3. error :cannot find symbol
    By iswan in forum AWT / Java Swing
    Replies: 1
    Last Post: October 1st, 2011, 08:26 AM
  4. Cannot find symbol error
    By AnuR in forum What's Wrong With My Code?
    Replies: 9
    Last Post: February 23rd, 2011, 01:50 PM
  5. cannot find symbol Error
    By bananasplitkids in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 9th, 2010, 01:36 AM