How to change the default project directory (folde

2019-03-09 21:06发布

How to change the default project directory in Netbeans 6.9 for Java SE\ME\EE?

7条回答
Rolldiameter
2楼-- · 2019-03-09 21:46

I found mine in a slightly different location (Windows 7 64-bit using Netbeans 7.2):

C:\Users\UserName\AppData\Roaming\NetBeans\7.2\config\Preferences\org\netbeans\modules\projectui.properties

查看更多
SAY GOODBYE
3楼-- · 2019-03-09 21:50

I don't think you can make it module-specific but you can set it as follows:

  1. Close NetBeans
  2. Find the projectui.properties file. For me (Windows) it was under C:\Documents and Settings\Catchwa\.netbeans\6.9\config\Preferences\org\netbeans\modules\projectui.properties
  3. The projectsFolder=C:\\NetBeansProjects variable is I think what you want to change.
查看更多
欢心
4楼-- · 2019-03-09 21:50

Under Windows 7, logged in under AD, the projectui.properties file's directory was under the parent folder listed in the USERPROFILE environment variable (type set in a command prompt window):

C:\Users\my_login_name\\.netbeans\7.0\config\Preferences\org\netbeans\modules\projectui.properties

It was not in the directories pointed at by the HOME or APPDATA variables.

Changed projectsFolder value to new location, restarted NetBeans and default folder for new projects was in the new location. It worked!

查看更多
我欲成王,谁敢阻挡
5楼-- · 2019-03-09 21:51

In linux/Ubuntu

  1. View hidden files in home directory (press ctrl+H on /home folder).
  2. .netbeans\7.3\config\Preferences\org\netbeans\modules\projectui.properties

Update the following content in projectui.properties file

projectsFolder=/home/folder/NB
查看更多
劳资没心,怎么记你
6楼-- · 2019-03-09 21:55

In newer versions, right-click on the project you want to move in the 'Projects' tab, and then click 'Move'. This will allow you to move the project to a new directory.

查看更多
可以哭但决不认输i
7楼-- · 2019-03-09 21:56

In windows 7 64 bit properties file can be found under c:\Users\user\AppData\Roaming\NetBeans\7.2.1\config\Preferences\org\netbeans\modules\ folder

查看更多
登录 后发表回答