Maven Compile Error, Symbol not found

Posted on 2009-12-20
Last Modified: 2013-11-24
Hi all,

I compiled a program and get a lot of errors which look like this  :-
Cannot find symbol : class XmlElement
Cannot find symbol : variable Browser

and all the errors involving cannot find symbol. I tried to search online, but nothing really helps. Can someone give me an idea what could possibly go wrong?

Question by:sylph
    LVL 23

    Accepted Solution

    >> Can someone give me an idea what could possibly go wrong?

    It because the classpath doesn't contain artifact that has definition of these classes.
    LVL 20

    Expert Comment

    by:Sathish David Kumar N
    I think ur jar file not in correct path!!
    LVL 2

    Expert Comment

    I don't think you've got the appropriate packages in your pom.

    You need to ensure that you include all the appropriate artifacts (i.e. jars) in your pom.xml file

    Author Comment

    Hi all,

    Thanks for all the suggestions. Don't really knwo why, but the app has been migrated from maven 1 to maven 2 and it works fine now. Thanks a lot all!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now