Thread: Reached end of file wile parsing. Compiler

Results 1 to 6 of 6
  1. #1 Reached end of file wile parsing. Compiler 
    Registered Member
    Join Date
    Jun 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I'm having a problem with my compiler which says "Reached end of file while parsing" and I don't understand why this is happening? Maybe someone can help me please.

    code:
    break;
    if (c.slayerTask <= 0) {
    c.getDH().sendDialogues(11,npcType);
    } else {
    c.getDH().sendDialogues(13,npcType);
    }
    break;
    case 461:
    c.getShops().openShop(2);
    break;

    case 683:
    c.getShops().openShop(3);
    break;

    case 549:
    c.getShops().openShop(28);
    break;

    case 2538:
    c.getShops().openShop(6);
    break;

    case 519:
    c.getShops().openShop(8);
    break;
    case 1282:
    c.getShops().openShop(7);
    break;
    case 1152:
    c.getDH().sendDialogues(16,npcType);
    break;
    case 494:
    c.getPA().openUpBank();
    break;
    case 2566:
    //c.getShops().openSkillCape();
    break;
    case 3789:
    c.sendMessage("You currently have "+c.pkPoints+" Pk Points.");
    break;
    case 3788:
    c.getShops().openVoid();
    break;
    case 905:
    c.getDH().sendDialogues(5, npcType);
    break;
    case 460:
    c.getDH().sendDialogues(3, npcType);
    break;
    case 462:
    c.getDH().sendDialogues(7, npcType);
    break;
    case 522:
    case 523:
    c.getShops().openShop(1);
    break;
    case 599:
    c.getPA().showInterface(3559);
    c.canChangeAppearance = true;
    break;
    case 904:
    c.sendMessage("You have " + c.magePoints + " points.");
    break;
    default:
    ScriptManager.callFunc("npcClick1_"+npcType, c, npcType);
    if(c.playerRights == 3)
    Misc.println("First Click Npc : "+npcType);
    break;
    switch(npcType) {}
    case 1596:
    c.getShops().openShop(29);
    break;
    case 970:
    c.getDH().sendDialogues(23, npcType);
    break;
    case 553:
    c.getPA().startTeleport(2922, 4846, 0, "modern");
    break;
    case 1039:
    c.getShops().openShop(30);
    break;

    case 546:
    c.getShops().openShop(27);
    break;
    case 541:
    c.getShops().openShop(26);
    break;

    case 2824:
    c.getShops().openShop(25);
    break;
    case 570:
    c.getShops().openShop(24);
    break;
    case 587:
    c.getShops().openShop(22);
    break;
    case 321: //Shark
    c.getFishing().setupFishing(383);
    break;
    case 324: //Tuna
    c.getFishing().setupFishing(359);
    break;
    case 25:
    c.getDH().sendDialogues(68, npcType);
    break;
    case 333: //Monkfish
    c.getFishing().setupFishing(7944);
    break;
    case 1593:

    c.getDH().sendDialogues(66, npcType);
    break;
    case 551:
    case 534:
    c.getDH().sendDialogues(24, npcType);
    break;
    case 80:
    c.getDH().sendDialogues(67, npcType);
    break;
    case 552:
    //c.getShops().openShop(32);
    c.getDH().sendDialogues(25, npcType);
    break;
    case 2258:
    c.getShops().openShop(33);
    break;
    case 2270:
    c.getShops().openShop(20);
    break;
    case 1282:
    c.getShops().openShop(7);
    break;
    case 3788:
    c.getShops().openVoid();
    break;
    case 494:
    c.getPA().openUpBank();
    break;
    case 904:
    c.getShops().openShop(17);
    break;
    case 522:
    case 523:
    c.getShops().openShop(1);
    break;
    case 461:
    c.getShops().openShop(2);
    break;

    case 683:
    c.getShops().openShop(3);
    break;

    case 549:
    c.getShops().openShop(28);
    break;

    case 2538:
    c.getShops().openShop(6);
    break;

    case 519:
    c.getShops().openShop(8);
    break;
    case 3789:
    c.getShops().openShop(29);
    break;
    case 1:
    case 9:
    case 18:
    case 20:
    case 26:
    case 21:
    c.getThieving().stealFromNPC(npcType);
    break;
    default:
    ScriptManager.callFunc("npcClick2_"+npcType, c, npcType);
    if(c.playerRights == 3)
    Misc.println("Second Click Npc : "+npcType);
    break;
    c.clickNpcType = 0;
    c.npcClickIndex = 0;
    switch(npcType) {}

    case 1596:
    c.getShops().openShop(39);
    break;
    default:
    ScriptManager.callFunc("npcClick3_"+npcType, c, npcType);
    if(c.playerRights == 3)
    Misc.println("Third Click NPC : "+npcType);
    }

    }
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Apr 2018
    Posts
    138
    Thanks given
    31
    Thanks received
    66
    Rep Power
    159
    Post the class that is generating the error here, it is more then likely being caused by a missing bracket.
    Reply With Quote  
     

  3. #3  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,698
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    590
    I would take a look around this part:
    Code:
    Misc.println("First Click Npc : "+npcType);
    break;
    switch(npcType) {} 
    case 1596:
    c.getShops().openShop(29);


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Lantern Web View Post
    Post the class that is generating the error here, it is more then likely being caused by a missing bracket.


    src\server\model\players\ActionHandler.java:2016: error: reached end of file whi
    le parsing
    }
    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Apr 2018
    Posts
    138
    Thanks given
    31
    Thanks received
    66
    Rep Power
    159
    Quote Originally Posted by robhertino View Post
    src\server\model\players\ActionHandler.java:2016: error: reached end of file whi
    le parsing
    }
    ^
    1 error
    Press any key to continue . . .
    There you go, at line 2016 add a } bracket.

    The compiler tells you what's wrong...
    Reply With Quote  
     

  6. #6  
    Donator
    Rudie's Avatar
    Join Date
    Nov 2011
    Posts
    90
    Thanks given
    56
    Thanks received
    13
    Rep Power
    11
    perhaps you should learn some java basics
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Error: Reached End of file while Parsing!
    By Owner godlys in forum Help
    Replies: 6
    Last Post: 03-10-2011, 09:35 PM
  2. Replies: 11
    Last Post: 01-13-2011, 04:02 PM
  3. "Reached end of file while parsing" Error.
    By Glass O Wine in forum Help
    Replies: 11
    Last Post: 06-06-2010, 08:00 AM
  4. Reached End of File While Parsing
    By konvict in forum Help
    Replies: 5
    Last Post: 05-04-2010, 10:32 PM
  5. Replies: 5
    Last Post: 12-17-2009, 04:10 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
  •