克隆后无法看到项目 class
can not see project class after clone
我是 netbeans.well git 的新手,当我从 github 克隆存储库时,我会显示创建 netbeans 项目而不是打开 netbeans 项目,然后 select 在项目选项卡中没有显示任何 class。
这取决于项目的确切性质(java?)及其文件夹结构。
参见“Step by step directions for NetBeans IDE: " by Wayne Pollock
- Click
Next
to create a clone of the repo (under the NetBeans projects folder). This should also scan for projects.
Not finding any NetBeans project files, the “Create project
” wizard should launch automatically.
It may show a popup window instead, with “Do you want to create an IDE project from the cloned sources?
”. If so, proceed by clicking the Create Project...
button.)
Use “Java Project with existing sources
”, and click Next
.
- Pick some project name (e.g., “
Proj2
”), and hit Next.
- Click the “
Add Folder
” button (for the “Source Package Folders
” section), and select the “src
” project folder. Click Next
.
- Make sure
mypkg/Main.java
shows in the list of included files.
Then click the Finish
button.
If you only see “Main.java
” and not “mypkg/Main.java
”, then you didn't have the correct folder selected in the previous step.
In this case, hit the “Back
” button, click on the folder to select it, and hit the “Remove
” button.
Now click the “Add folder...
” button and try again.
That's it! You should now have a local repo, and a NetBeans project linked with it.
我是 netbeans.well git 的新手,当我从 github 克隆存储库时,我会显示创建 netbeans 项目而不是打开 netbeans 项目,然后 select 在项目选项卡中没有显示任何 class。
这取决于项目的确切性质(java?)及其文件夹结构。
参见“Step by step directions for NetBeans IDE: " by Wayne Pollock
- Click
Next
to create a clone of the repo (under the NetBeans projects folder). This should also scan for projects.Not finding any NetBeans project files, the “
Create project
” wizard should launch automatically.
It may show a popup window instead, with “Do you want to create an IDE project from the cloned sources?
”. If so, proceed by clicking theCreate Project...
button.)
Use “Java Project with existing sources
”, and clickNext
.
- Pick some project name (e.g., “
Proj2
”), and hit Next.- Click the “
Add Folder
” button (for the “Source Package Folders
” section), and select the “src
” project folder. ClickNext
.- Make sure
mypkg/Main.java
shows in the list of included files.
Then click theFinish
button.If you only see “
Main.java
” and not “mypkg/Main.java
”, then you didn't have the correct folder selected in the previous step.
In this case, hit the “Back
” button, click on the folder to select it, and hit the “Remove
” button.
Now click the “Add folder...
” button and try again.That's it! You should now have a local repo, and a NetBeans project linked with it.