Results 1 to 2 of 2
  1. #1
    witnikay is offline Member
    Join Date
    Feb 2012
    Arlington, Texas
    Rep Power

    Default Exception in thread "main" Error

    Ok so I have been trying to figure this issue out and I did, but I ended up causing more problems so now I am back to my original problem. When i compile a program it works great, but when I try to execute the file I get this error.

    Exception in thread "main" java.util.MissingFormatArgumentException: Format
    Specifier 's'
    at java.util.Formatter.format(
    at java.util.Formatter.format(
    at WriteVets.writeVets(
    at WriteVets.main(WriteVets.10)

    So I know that my file is good. it excutes perfectly on 2 other machines. I can't get any file to execute on my machine. I read somewhere that i was because I had different versions of java installed so I fixed that and now I have the following installed on my computer:

    Java(TM) 7 Update 2 (64-bit)
    Java(TM) SE Development kit 7 Update 2 (64-bit)
    JavaFX 2.0.2 (64-bit)
    JavaFX 2.0.2 SDK (64-bit)

    Does anyone have any ideas what might be wrong or how to fix it. I am honeslty out of ideas. I have installed and reinstalling different versions everything I can think of and I can't get it to work. Thanks


  2. #2
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Rep Power

    Default Re: Exception in thread "main" Error

    If you check the exception it says "Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist." Check format specifier and argument in the main method .

Similar Threads

  1. Replies: 6
    Last Post: 01-21-2012, 05:59 AM
  2. Replies: 5
    Last Post: 06-22-2010, 03:51 PM
  3. Replies: 1
    Last Post: 11-20-2009, 07:58 PM
  4. Replies: 1
    Last Post: 08-07-2007, 07:10 AM
  5. Replies: 1
    Last Post: 07-25-2007, 10:55 PM

Posting Permissions

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