Importing project into Netbeans

前端 未结 8 860
攒了一身酷
攒了一身酷 2021-01-17 17:58

My client just sent me the base project for development purposes. I think he just zipped the project folder and sent to me.

Now when I go to NetBeans, \"New project

相关标签:
8条回答
  • 2021-01-17 18:10

    From Netbeans 8.1 - there is an "Import from ZIP" option.

    Go to Main Menu -> File -> Import Project -> from ZIP.

    Browse your .ZIP file's location via Browse button.

    If you have Java project depending on external Libraries, Netbeans will highlight & ask for "Resolving problems" in project, click on resolve, provide location in your file system containing required library files .e.g JARs etc & you will be good to go.

    0 讨论(0)
  • 2021-01-17 18:15

    Follow these steps:

    1. Open Netbeans
    2. Click File > New Project > JavaFX > JavaFX with existing sources
    3. Click Next
    4. Name the project
    5. Click Next
    6. Under Source Package Folders click Add Folder
    7. Select the nbproject folder under the zip file you wish to upload (Note: you need to unzip the folder)
    8. Click Next
    9. All the files will be included but you can exclude some if you wish
    10. Click Finish and the project should be there

    If you don't have the source folder added do the following

    1. Under your projects directory tree right click on Source Packages
    2. Click New
    3. Click Java Package and name it with the name of the package the source files have
    4. Go to the directory location (i.e., using Windows Explorer not Netbeans) of those source files, highlight them all, then drag and drop them under that Java Package you just created
    5. Click Run
    6. Click Clean and Build Project

    Now you can have fun and run the application.

    0 讨论(0)
  • 2021-01-17 18:15

    I use Netbeans 7. Choose menu File \ New project, choose Import from existing folder.

    0 讨论(0)
  • 2021-01-17 18:18

    Since you already have all the files in a folder, say "Project", you simply have to open Netbeans and go to File -> Open Project (or Ctrl + Shift+ O on Windows) and then from the dialog box navigate to the folder containing the Folder "Project".

    You will see in the dialog box of Netbeans a 'Java cup'. Well, that's your project.

    0 讨论(0)
  • 2021-01-17 18:21

    Try copying the src and web folder in different folder location and create New project with existing sources in Netbeans. This should work. Or remove the nbproject folder as well before importing.

    0 讨论(0)
  • 2021-01-17 18:22

    If there is already a nbproject folder it means you can open it straight ahead without importing it as a project with existing sources (ctrl+shift+o) or (cmd+shift+o)

    0 讨论(0)
提交回复
热议问题