Thread: Error (how do I fix this?)

Results 1 to 10 of 10
  1. #1 Error (how do I fix this?) 
    Registered Member
    Join Date
    Jul 2010
    Posts
    63
    Thanks given
    3
    Thanks received
    1
    Rep Power
    10
    when I run my source I get this:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(Num berFormatException.
    java:48)
    at java.lang.Integer.parseInt(Integer.java:470)
    at java.lang.Integer.parseInt(Integer.java:499)
    at server.world.ItemHandler.loadItemPrices(ItemHandle r.java:319)
    at server.world.ItemHandler.<init>(ItemHandler.java:3 5)
    at server.Server.<clinit>(Server.java:62)
    Could not find the main class: server.Server. Program will exit.
    Press any key to continue . . .
    how do I fix this??
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    What the fuck do you think yourself? it explains itself

    at server.world.ItemHandler.loadItemPrices(ItemHandle r.java:319)
    and cannot parseInt.. Let me explain you kid what an int is:

    NUMBERS

    0123456789
    So you probably have something else than that somewhere in the file..
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2010
    Posts
    63
    Thanks given
    3
    Thanks received
    1
    Rep Power
    10
    ? can you / anyone help?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2010
    Posts
    63
    Thanks given
    3
    Thanks received
    1
    Rep Power
    10
    nvm fixed
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Sorry i forgot to fucking explain what a String is:

    Caused by: java.lang.NumberFormatException: For input string: ""

    abcdefghijklmnopqrstuvwxyz
    event went to freaking advanced to post this
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by jtox View Post
    nvm fixed
    What nvm fixed every fucking idiot knew it was prices.txt

    loadItemPrices
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2010
    Posts
    63
    Thanks given
    3
    Thanks received
    1
    Rep Power
    10
    Not everyones gonna know what to do when they start coding.....
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2012
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    jtox, you may want to start out learning Java before you start server programming. Programming a server is actually a very difficult task and it's not for someone who "have just started coding". I agree that iQuality could have been less rude, but truthfully, he's right.
    Reply With Quote  
     

  9. #9  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    Quote Originally Posted by _BEDA_ View Post
    jtox, you may want to start out learning Java before you start server programming. Programming a server is actually a very difficult task and it's not for someone who "have just started coding". I agree that iQuality could have been less rude, but truthfully, he's right.
    aye less rude for sure rofl, why bother posting when your in a bad mood...
    sorry jtox, if i was on earlier i would have helped
    spoiler for people i respect
    [SPOIL]galkon, Cocoa, infexis, daza, SWAT, penor, clienthax, k4rn4ge, garyking, Ghost++, kenneh, coder alex, sanity, badger41, vagoo [/SPOIL]
    most epic series ever@!!
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  10. #10  
    Extreme Donator

    woof woof bish's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    2,444
    Thanks given
    2,212
    Thanks received
    1,019
    Rep Power
    5000
    Lol iQuality, chill bro and let him be ''stupid''.
    Everyone starts like that, even you.
    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. Replies: 9
    Last Post: 10-20-2011, 07:52 AM
  2. [PI] Error Cant Fix [PI]
    By D R O in forum Help
    Replies: 7
    Last Post: 05-21-2011, 10:42 PM
  3. Impact T2 Error Fix (Client crash fix)
    By Core in forum Snippets
    Replies: 17
    Last Post: 12-27-2009, 05:27 PM
  4. how do i fix this error
    By apur3slife in forum Help
    Replies: 2
    Last Post: 08-27-2009, 07:57 PM
  5. What does this error mean, and how do i fix it?
    By jameskmonger in forum Help
    Replies: 5
    Last Post: 05-04-2009, 08:50 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
  •