Netbeans scanning of project too slow

后端 未结 3 719
粉色の甜心
粉色の甜心 2021-01-04 18:38

I use netbeans 7.3.1, i have found here one way how to make netbeans faster: How to improve Netbeans performance?, but my problem is that my netbeans is to slow by project

相关标签:
3条回答
  • 2021-01-04 19:21

    Try to disable auto-scanning of sources. Make sure that you only modify the sources via Netbeans. According to the manual:

    Enable auto-scanning of sources
    When selected, the IDE will scan the source code of projects to detect any files that were modified externally. Scanning is triggered when the focus is returned to the IDE, for example when the user returns to the IDE from another application. If your sources are only modified from within the IDE, you can probably disable auto-scanning with little risk of encountering problems. Disabling auto-scanning may improve IDE performance if you are working on large projects. Auto-scanning is enabled by default.

    enter image description here

    Other than that it the network that causes the delay.

    0 讨论(0)
  • 2021-01-04 19:27

    Scanning performance of Netbeans can be improved using the following procedure :
    1) Go to Window-->Files. This opens the Files Tab.
    2) In the Files Tab for each opened project open the nbproject folder and inside it open the project.properties file.
    3) Now in this file below the property "excludes" there are file references listed for all your referred Libraries (JARs)
    4) There might be some repeated file references with incorrect paths on your network.
    5) Delete those old incorrect path references.
    Example -
    excludes=
    file.reference.xyz.jar=../not/correct/path.jar //delete this line
    file.reference.xyz.jar-1=../correct/path.jar //remove -1
    ....
    includes=**

    6)Also locate the property "javac.classpath" and delete the unnecessary classpath entries corresponding to the deleted references as described above.
    Example -
    javac.classpath=\
    ${file.reference.xyz.jar}:\ //delete this line
    ${file.reference.xyz.jar-1}:\ //remove -1
    ....
    javac.compilerargs=

    7) So now the file reference mentioned in the file reference section and the javac.classpath property is same and points to a valid Library (JAR) address on your machine or network.
    Example -
    excludes=
    file.reference.xyz.jar=../correct/path.jar //the correct reference & path
    ....
    includes=**
    ....
    javac.classpath=\
    ${file.reference.xyz.jar}:\ //the correct classpath entry for reference
    ....
    javac.compilerargs=
    ....

    The reason the above procedure worked (in my case) is because it prevents Netbeans from scanning unnecessary Library paths that may not be present on your machine/network.

    0 讨论(0)
  • 2021-01-04 19:28

    The previous answer didn't work for me. But if your OS is Windows, I only found one way to significantly decrease the amount of time it takes to open my remote project and hopefully it will work for you.

    1. Open Programs and Features.
    2. Select Turn Windows features on or off.
    3. Uncheck Remote Differential Compression.

    Windows Features

    Beyond disabling that, depending on the size of your project, netbeans indexes your project during each launch in order to track changes that have been made. Application modules are also cached which causes a further delay as well.

    One more thing you can try which may help if your project or netbeans version has significantly changed, and was recommended in the comments above, is to clear the cache.

    You can either rename the folder, or delete it (netbeans will recreate it).

    Paths: http://wiki.netbeans.org/FaqWhatIsUserdir

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