Results 1 to 3 of 3
  1. #1
    gib65 is offline Member
    Join Date
    Jun 2010
    Rep Power

    Default what is a build script?

    This is a cross-post from here: importing my application into NetBeans. I have received no replies there so I'm posting it again here:

    I have created a rather large Java application from scratch - meaning that it was all done in Notepad (no IDE). Now I would like to import it into NetBeans and make it into a project.

    I tried doing this:

    File >> New Project >> Java Free-Form Project >> and then it asks for a build script.

    I don't know what a build script is.

    All I have are a bunch of .java files and their corresponding .class files. There is packaging and so there is a small folder hierarchy. But apparently I need a "build script" too.

    What is this and how can I make one.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    Just make a new Project --> Java Application (or Java Class Library, if this is a bunch of library classes without a class that has a p.s.v. main(...) method).

    Then from the operating system's file explorer, copy the packages/folders source tree under the top-level project folder created by NetBeans. In a few seconds, NetBeans will pick up the new folders and files. If it doesn't, close and reopen NetBeans.

    Note: copy the source tree and the source files, not the .class files.


  3. #3
    gib65 is offline Member
    Join Date
    Jun 2010
    Rep Power


    NetBeans doesn't seem to like that very much. I browse to where I copied my project folder (under NetBeans default NetBeansProjects folder), select it, and then name the project after the folder name. NetBeans screams at me: Project Folder already exists and is not empty. And won't let me proceed.

    I can't name it anything else; otherwise it creates a new folder under NetBeansProjects with that name and completely ignores the folder containing my copied project.

    That said, I then tried creating a Jave Project with Existing Sources, and with a bit of trial and error, got it up and running.

    Thanks for pointing me in the right direction.

Similar Threads

  1. ANT build script, problem with packaging using rapc
    By bartosz666 in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-19-2011, 02:20 PM
  2. HELP: how and where was this build?
    By timosilver in forum New To Java
    Replies: 1
    Last Post: 12-15-2010, 11:53 AM
  3. How to build jar with JNI
    By chyrl in forum Advanced Java
    Replies: 11
    Last Post: 07-22-2010, 08:43 AM
  4. ant build
    By sardare in forum New To Java
    Replies: 4
    Last Post: 04-02-2009, 10:02 PM
  5. How build the applicatoin by using Batch file script
    By Kishore.Kumar in forum Eclipse
    Replies: 0
    Last Post: 02-11-2009, 09:42 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