NetBeans background scanning projects takes too long

后端 未结 15 1383
-上瘾入骨i
-上瘾入骨i 2021-02-05 03:29

NetBeans background scanning projects takes too long. Every time when I open netbeans it scanning for ages. I used NetBeans 7.2 and it works perfecly. Now I formatted pc and rei

相关标签:
15条回答
  • 2021-02-05 03:44

    On Windows 10 64bit I had the same problem with Netbeans IDE 8.1 I restarted Netbeans as administrator and the problem was solved. Then I closed Netbeans and started normally and the problem was still gone.

    Product Version: NetBeans IDE 8.1 (Build 201510222201)
    Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
    Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
    Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
    System: Windows 10 version 10.0 running on amd64; Cp1252; nl_NL (nb)
    
    0 讨论(0)
  • 2021-02-05 03:47

    OS: Windows 7 x64.

    The following worked for me:

    I fully uninstalled Netbeans (ticked all boxes in uninstaller). For those who couldn't you'll need to go to C:\Users\%username%\AppData\Roaming\NetBeans\8.0.2 and delete a file called 'lock'. This is normally removed when the program exits but if you need to force terminate it'll remain there.

    After that I uninstalled JDK and JRE then downloaded Java Platform (JDK) 8u40: http://www.oracle.com/technetwork/java/javase/downloads/index.html

    And Netbeans 8.0.2: https://netbeans.org/downloads/

    Installed JDK (which installs JRE too), after that Netbeans. Once complete I loaded up projects where background scanning got stuck and it seems to have fixed it. Will post updates if it starts happening again.

    0 讨论(0)
  • 2021-02-05 03:52

    i'm facing the same issue, but it works fine after increase the heap size by adding -J-Xmx2048m in <NETBEANS_DIR>\etc\netbeans.conf

    mine looks like this:

     netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......
    
    0 讨论(0)
  • 2021-02-05 03:54

    Please try NetBeans 8.0.2 from https://netbeans.org/downloads/

    NetBeans 7.2 is too old and you will not get any support anymore.

    0 讨论(0)
  • 2021-02-05 03:56

    I had the same problem but in my case I was on Windows 10 and running NetBeans 8.1.

    Before I formatted my laptop I copied and backed up C:\Users\user_name\AppData\Roaming\NetBeans\8.1 and C:\Users\user_name\AppData\Local\NetBeans\Cache folders

    Then i followed the below steps:

    1. Install NetBeans and run it.
    2. Closed NetBeans
    3. Go to C:\Users\user_name\AppData\Roaming\NetBeans\8.1 and C:\Users\user_name\AppData\Local\NetBeans\Cache folders and replace them with the backed up folders.
    4. Run NetBeans again

    I hope this solves your problem!!

    0 讨论(0)
  • 2021-02-05 03:58

    Always I fix such Netbeans related problems by deleting cache directory.

    Directory location can be seen on About dialog window. For me, the path is

    C:\Users\USER\AppData\Local\NetBeans\Cache\YOUR_VERSION

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