Results 1 to 9 of 9
  1. #1
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default my program cannot be compile

    Hi all~
    my program has been done before im using netbeans 6.9,
    before that im using netbeans 6.8.
    after i format my computer and install netbeans 6.9 my program cannot be compile already, even i try to install back netbeans 6.8.
    error when im compile the project :
    ..\nbproject\build-impl.xml:184: Must set build.dir
    error whrn im run the project :
    does not have a main class set.:confused:
    who can help me ?? thank you

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default

    D:\CSTay-Data\TMM - Java Program\09-08-10\new\Computer\nbproject\build-impl.xml:184: Must set build.dir
    BUILD FAILED (total time: 0 seconds)
    this is my compile error.
    I cannot make it my code here because that the code is very big and long~
    before that still can work well.

  4. #4
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default

    the error point me as below
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
    <fail unless="src.build.dir">Must set src.build.dir</fail>
    <fail unless="build.dir">Must set build.dir</fail>
    <fail unless="dist.dir">Must set dist.dir</fail>
    <fail unless="build.classes.dir">Must set build.classes.dir</fail> <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
    <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
    <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
    <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
    <fail unless="dist.jar">Must set dist.jar</fail>
    </target>

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  6. #6
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default

    sorry can teach me how to do it? because before that i just type out the code and run~
    never do other setting before

  7. #7
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default

    hi~ i try to set main class le ~ but it was no any class in the drop down list~
    how i going to choose?
    >.<

    Image Upload with resize

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Right click on the project, and click on properties. You can find an option to define the main class there.

  9. #9
    justlynn is offline Member
    Join Date
    Jun 2010
    Posts
    18
    Rep Power
    0

    Default

    but it was no any class in the drop down list~
    that's why i cannot set any class as main class

Similar Threads

  1. Compile and run a java program through another one
    By z.zojaji in forum Advanced Java
    Replies: 9
    Last Post: 07-15-2010, 08:06 AM
  2. Teach Me Pls How To Compile Java Program Using CMD
    By Lilsimple in forum Java Applets
    Replies: 1
    Last Post: 03-11-2010, 05:26 PM
  3. My Java program will not compile and run?
    By sabrown311313 in forum Java Applets
    Replies: 1
    Last Post: 09-23-2008, 10:38 AM
  4. Program Won't Compile
    By JavaLovenJoe in forum New To Java
    Replies: 2
    Last Post: 04-22-2008, 02:31 PM
  5. Compile a program
    By toby in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 10:09 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
  •