Results 1 to 5 of 5

Thread: RunTime Error

  1. #1
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default RunTime Error



    Hey I'm making a GUI type thing and was trying to use Math.Log() and Math.Log10()
    and I get this runtime error.

    What's the error generally mean happened in lay man's terms?

    Thanks :)

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,807
    Rep Power
    10

    Default

    Copy and paste the full and exact error message. If you tried posting a screenshot then it didn't work. All I see is a red cross.

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    11

    Default

    It means you tried calling parseDouble on an incorrect string argument. You can't parse a string which contains characters. "5.24", can be parsed into a double, "5.4x" cannot. Make sure the input is the correct input, perhaps you should do some checking to possibly remove any non numbers inside the string.

  4. #4
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default

    @sunde887
    Oh wow thanks, I tried to parse the wrong object in >.<

  5. #5
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    11

Similar Threads

  1. runtime error
    By ashaudhaya in forum New To Java
    Replies: 2
    Last Post: 11-12-2010, 11:13 AM
  2. Runtime Error
    By mathfxr in forum New To Java
    Replies: 8
    Last Post: 09-17-2010, 08:26 PM
  3. RunTime Error
    By LostinJavaLand in forum New To Java
    Replies: 3
    Last Post: 07-12-2010, 01:30 PM
  4. runtime error problems. please help!
    By RoadRunner in forum Forum Lobby
    Replies: 0
    Last Post: 04-21-2009, 05:03 PM
  5. Replies: 3
    Last Post: 01-23-2009, 09:53 AM

Tags for this Thread

Posting Permissions

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