Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: java.lang.NoSuchMethodError error code

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java.lang.NoSuchMethodError error code

    When I attempt to compile, I am getting an error message " Exception in thread "main" java.lang.NoSuchMethodError: main "

    Code is below


  2. #2
    Member angstrem's Avatar
    Join Date
    Mar 2013
    Location
    Ukraine
    Posts
    200
    My Mood
    Happy
    Thanks
    9
    Thanked 31 Times in 29 Posts

    Default Re: java.lang.NoSuchMethodError error code

    You're missing "static" from the main method's modifiers.

  3. #3
    Junior Member
    Join Date
    May 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java.lang.NoSuchMethodError error code

    Thanks so much for the fast response!

Similar Threads

  1. Replies: 5
    Last Post: January 10th, 2013, 07:34 AM
  2. Replies: 6
    Last Post: November 12th, 2010, 03:40 AM
  3. java.lang.NoSuchMethodError in webserice with CXF
    By jammychen in forum Java Theory & Questions
    Replies: 1
    Last Post: September 22nd, 2010, 02:56 PM
  4. Replies: 2
    Last Post: March 26th, 2010, 11:22 AM
  5. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 07:35 AM