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

    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(Formatter.java.2487)
    at java.util.Formatter.format(Formatter.java.2423)
    at WriteVets.writeVets(WriteVets.java:24)
    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

    Witni

  2. #2
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    6

    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, 06:59 AM
  2. Replies: 5
    Last Post: 06-22-2010, 04:51 PM
  3. Replies: 1
    Last Post: 11-20-2009, 08:58 PM
  4. Replies: 1
    Last Post: 08-07-2007, 08:10 AM
  5. Replies: 1
    Last Post: 07-25-2007, 11: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
  •