Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2013
    Rep Power

    Default Compile errors when adding a project to netbeans (help!)

    Hi, guy

    I've recently taken over a Java project from another developer. I've adding the project into netbeans using all the existing files but I'm getting a number of compile errors, which are preventing me from building the project. I know there is nothing wrong with the files.

    So I was just wondering if there were any common setting I may have missed when adding the project to prevent it from compiling or if anyone has any suggestions on where to look?

    Thanks guys.
    (not sure if you've guessed but i'm new to this.)

  2. #2
    PhQ's Avatar
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Rep Power

    Default Re: Compile errors when adding a project to netbeans (help!)

    You should post the errors that you get here. :)

    Have you imported all of the libraries and stuff?

  3. #3
    Join Date
    Jan 2013
    Rep Power

    Default Re: Compile errors when adding a project to netbeans (help!)

    So the error I get when I run the project is

    java.lang.VerifyError: Constructor must call super() or this() before return in method EvapSim.<init>()V at offset 0
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2442)
    at java.lang.Class.getMethod0(
    at java.lang.Class.getMethod(
    at sun.launcher.LauncherHelper.getMainMethod(Launcher
    at sun.launcher.LauncherHelper.checkAndLoadMain(Launc
    Exception in thread "main" Java Result: 1

    So my files need to be recompiled right? Ive got 10 files that wont compile. Some of them are older versions of the same file. When I try and compile the pages I get

    "class, interface or enum expected"

    I've no idea why they wont compile

    I've no imported any library because I have no documentation telling me if I need any.

Similar Threads

  1. Replies: 0
    Last Post: 04-06-2012, 03:46 AM
  2. Netbeans IDE Errors while compiling a JSP project
    By pala in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 12-29-2011, 08:35 AM
  3. help with compile errors
    By bzupnick in forum New To Java
    Replies: 1
    Last Post: 02-15-2011, 09:14 PM
  4. Replies: 4
    Last Post: 01-04-2011, 01:36 AM
  5. compile errors (how do I fix)
    By rhythmiccycle in forum New To Java
    Replies: 4
    Last Post: 01-03-2011, 11:33 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