How to handle exception in Java?

How to handle Exception in thread "main" java.lang.NoSuchMethodError: main Java Result: 1?

  • I am trying to run a program in java but I keep getting this error. I am using netbeans, and I only got this error after clicking on a button to create a code stub for it (i did type in some code for the button). How can I fix this problem? 2 hours ago - 4 days left to answer. The link below includes the code, note that I am following a tutorial step by step. http://www.text-upload.com/read.php?id=3%E2%80%A6

  • Answer:

    You don't want to handle that exception, it means it's trying to execute a function that doesn't exist. Try cleaning then rebuilding your project.

Bleh22 at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.