Importing project into Netbeans

前端 未结 8 865
攒了一身酷
攒了一身酷 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: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.

提交回复
热议问题