Results 1 to 5 of 5

Thread: The Compiler Cannot Resolve Symbols in J2EE

  1. #1
    Join Date
    Jul 2006
    Posts
    339

    The Compiler Cannot Resolve Symbols in J2EE

    I have created an application in J2EE. When I am running that application I am getting an error. The error that I am getting is
    cannot resolve symbol
    ...
    BUILD FAILED
    ...
    Compile failed, messages should have been provided
    Later I came to know that the Compiler Cannot Resolve Symbols I don't know why this is happening. Can anyone tell me some useful solution.!!

  2. #2
    Join Date
    Nov 2008
    Posts
    996

    Re: The Compiler Cannot Resolve Symbols in J2EE

    The error "cannot resolve symbol" comes when the compiler cannot locate a symbol referenced in your source code. I have faced this error many times but in Java. The causes for this common error in Java are :
    1. When the symbol name is misspelled.
    2. A missing class file.
    3. When you enter a data type which is incorrect.
    4. A method is called with the wrong number or types of arguments.

    Writing the codes carefully is the best way to prevent the said errors.

  3. #3
    Join Date
    Jul 2006
    Posts
    289

    Re: The Compiler Cannot Resolve Symbols in J2EE

    This error in J2EE comes mostly because of the incorrect environment variable. So I would like to suggest you to check whether you've set the J2EE_HOME environment variable correctly. The installation instructions for the J2EE SDK and ant explain how to set the required environment variables. This error can be caused because of the ant converter. When you type ant converter, the compiler reports many errors also the one that you have mentioned.
    Signatures reduce available bandwidth

  4. #4
    Join Date
    Jul 2006
    Posts
    442

    Re: The Compiler Cannot Resolve Symbols in J2EE

    Mainly the error mentioned by you might have caused because of the environment variables. You will have to check the value of the environment variables as I shown below :
    Environment Variable Value
    J2EE_HOME - The path of the J2EE SDK installation
    JAVA_HOME - The path of the J2SE SDK installation
    ANT_HOME - The path of the ant installation
    PATH - Should include the bin directories of the J2EE SDK, J2SE, and ant installations
    "When they give you ruled paper, write the other way..." J.R.J.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: The Compiler Cannot Resolve Symbols in J2EE

    For your more information I would like to tell you the basic part of J2EE. Check that you are not making any mistake in this. For launching the J2EE server, type the following command after opening a terminal window :
    j2ee -verbose
    The verbose option is not required but putting it is useful for debugging.
    For stopping the server, you will have to type the following command :
    j2ee -stop

Similar Threads

  1. J2EE Authorization Model
    By visioneye in forum Software Development
    Replies: 5
    Last Post: 02-08-2010, 11:22 PM
  2. The J2EE Application Has Not Been Deployed
    By Damien25 in forum Software Development
    Replies: 4
    Last Post: 05-02-2010, 01:34 AM
  3. What is EJB role in J2EE?
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 12-09-2009, 09:07 AM
  4. How to use jta transactionmanager J2EE
    By RasMus in forum Software Development
    Replies: 3
    Last Post: 10-08-2009, 11:33 AM
  5. Replies: 3
    Last Post: 05-02-2009, 02:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,748,222.91844 seconds with 16 queries