Results 1 to 2 of 2
  1. #1
    codeAJ's Avatar
    codeAJ is offline Member
    Join Date
    Mar 2011
    Posts
    23
    Rep Power
    0

    Default java.lang.VerifyError when Running

    Hello,

    I'm a Java newbie that's been happily using NetBeans 7.0.

    For some reason my latest project is producing the following error when Running:

    run:
    java.lang.VerifyError: (class: RequestApp, method: addInstructor signature: ()V) catch_type not a subclass of Throwable
    Could not find the main class: RequestApp. Program will exit.
    Exception in thread "main" Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)

    The program compiles & runs ok from the command prompt.

    Any ideas out there? :confused:

  2. #2
    codeAJ's Avatar
    codeAJ is offline Member
    Join Date
    Mar 2011
    Posts
    23
    Rep Power
    0

    Default

    Just solved it, for anyone interested, after much head scratching.

    Deleted .class files from under project/build/classes.

    Ran Run -> Clean & Build Project.

    Seems to have fixed it.

Similar Threads

  1. Replies: 5
    Last Post: 03-17-2011, 02:26 PM
  2. java.lang.VerifyError
    By Andri_JT in forum JDBC
    Replies: 9
    Last Post: 01-29-2011, 06:19 AM
  3. Replies: 8
    Last Post: 11-04-2010, 01:46 PM
  4. Replies: 0
    Last Post: 08-26-2009, 01:03 PM
  5. Replies: 2
    Last Post: 09-18-2008, 07:30 AM

Posting Permissions

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