Results 1 to 4 of 4

Thread: Error -

  1. #1
    Sparky is offline Member
    Join Date
    Jan 2011
    Posts
    32
    Rep Power
    0

    Default Error -

    This line:

    Java Code:
    Document doc = parser.build("http://developerlife.com/xmljavatutorial1/AddressBook.xml");
    is giving, "Cannot find symbol, symbol: variable parser location: class Open_URL" error

    the word parser is underlined in red (I'm using NetBeans)

    while this line does not give any errors:
    Java Code:
    //                Document doc = db.parse(file);
    (W/o the commenting out that is)

    Can you explain how to resolve this?

    Thanks
    Sparky

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    15

    Default

    What is parser supposed to be? Is it a variable? When do you declare it? And what does that other line have to do with that problem?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    Sparky is offline Member
    Join Date
    Jan 2011
    Posts
    32
    Rep Power
    0

    Default

    My apologies -

    after hacking around with it and commenting in and out combinations -

    what happened: I cut and pasted the offending line with the error into my code and the problem was with the quotation marks.

    I finally noticed the ones in error looked different than ones I typed, changing the quotation marks fixed it.

    -Sparky

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,342
    Rep Power
    12

    Default

    Quotes that originate in MS Word files are usually all f'ed up. Word uses unicode characters for some symbols rather than the original ascii pallet - which has the wonderful side effect of screwing up copy and paste with code.

Similar Threads

  1. java out of memory error-heap space error
    By elsanthosh in forum NetBeans
    Replies: 4
    Last Post: 06-15-2010, 09:31 AM
  2. Replies: 1
    Last Post: 03-10-2010, 01:53 PM
  3. Replies: 1
    Last Post: 12-05-2009, 07:28 AM
  4. Replies: 1
    Last Post: 10-26-2009, 04:38 PM
  5. Replies: 3
    Last Post: 01-23-2009, 08:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •