Sửa lỗi netbean 7.2 trên win 10 năm 2024

Apache NetBeans is much more than a text editor. It highlights source code syntactically and semantically, lets you easily refactor code, with a range of handy and powerful tools.

Java, JavaScript, PHP, HTML5, CSS, and More

Apache NetBeans provides editors, wizards, and templates to help you create applications in Java, PHP and many other languages.

Cross Platform

Apache NetBeans can be installed on all operating systems that support Java, i.e, Windows, Linux, Mac OSX and BSD. Write Once, Run Anywhere, applies to NetBeans too.

Join us

Subscribe to our mailing lists, or follow us in Twitter, Slack, FaceBook or YouTube.

Participate

See how you can participate by submitting pull requests, filing issues, or joining the NetCAT program.

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 reinstalled windows, install the same version of NetBeans 7.2, and it works to slow.

Sửa lỗi netbean 7.2 trên win 10 năm 2024

asked Mar 2, 2015 at 13:41

user3351236user3351236

2,49811 gold badges29 silver badges53 bronze badges

2

Having the same issue with 8.0.2 when a project has JS resources I tracked it down in my case to a problem with the javascript2 editor module which has been updated over the original version shipping with netbeans 8.0.2.

I simply solved it by removing the updated module.

On Linux:

rm ~/.netbeans/8.0.2/modules/org-netbeans-modules-javascript2-editor.jar

However, after letting the netbeans updater download the module a second time, the problem didn't appear again.

In Netbeans 8.1, the location of this file is at: ide/modules/org-netbeans-modules-javascript2-editor.jar.

Sửa lỗi netbean 7.2 trên win 10 năm 2024

answered Mar 7, 2015 at 18:56

Sửa lỗi netbean 7.2 trên win 10 năm 2024

4

I have the same problem in netbeans but i found solution by unselect the check from auto scan background in your netbeans IDE go to tools and then Option and select then to miscellaneous and select file tab inside miscellaneous and you will find check as "enable of auto-scanning of the source unselect that one and netbeans will be fast then i hope it will help you in fasting your IDE too

Sửa lỗi netbean 7.2 trên win 10 năm 2024

Sửa lỗi netbean 7.2 trên win 10 năm 2024

answered May 27, 2016 at 12:25

Sửa lỗi netbean 7.2 trên win 10 năm 2024

1

After latest update of Netbean 8.0.2 I have the same problem that scaning process did not stop and go forever with CPU usage on 25%.

When I replace javascrip editor files in C:\Program Files\NetBeans 8.0.2\ide\modules on Windows 7 with old one then scaning project process start work again. You can take those file from this repo.

answered Mar 10, 2015 at 12:09

Sửa lỗi netbean 7.2 trên win 10 năm 2024

6

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 ......

Sửa lỗi netbean 7.2 trên win 10 năm 2024

Jorgesys

125k24 gold badges337 silver badges273 bronze badges

answered Aug 7, 2015 at 3:06

d1ck50nd1ck50n

1,3312 gold badges16 silver badges20 bronze badges

1

Try the following :

  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 paths that may be old or on someone else's machine(if you are working in a group and transferred projects from someone's machine)
  5. Delete those old 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 ....

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

0

6)Also locate the property "javac.classpath" and delete the unnecessary classpath entries corresponding to the deleted references as described above. Example -

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

1

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

2

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

3 ....

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

5

  1. 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=

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

7 ....

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

0 ....

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

1

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)

2 ....

 netbeans_default_options="-J-client -J-Xss2m -J-Xms2048m -J-Xmx2048m -J-XX:PermSize=32m ......

5 ....

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.

answered Apr 2, 2016 at 7:31

2

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)

answered Mar 9, 2017 at 7:30

Sửa lỗi netbean 7.2 trên win 10 năm 2024

Lexib0yLexib0y

50410 silver badges28 bronze badges

1

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

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)

6 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.

Sửa lỗi netbean 7.2 trên win 10 năm 2024

Jorgesys

125k24 gold badges337 silver badges273 bronze badges

answered Mar 11, 2015 at 13:13

AlexAlex

515 bronze badges

1

I actually made a bug report for this issue. It was fixed and pushed to the update channels yesterday. So for anyone still having this specific bug, let Netbeans check for updates. :)

Bugfix: https://netbeans.org/bugzilla/show_bug.cgi?id=250985

answered Mar 12, 2015 at 10:30

qraziqrazi

1,4061 gold badge15 silver badges18 bronze badges

1

On Ubuntu 18.04 / Netbeans 10.0, I had the same problem.

  • [FAIL] Deleted cache
  • [FAIL] Deleted project-specific "nbproject" dir
  • [FAIL] Closed the offending project (mouseover the progress bar to identify which one) > restart NB > create new project
  • [SUCCESS] Nuked the project from the F/S > re-cloned > restarted NB. I also renamed the directory itself, in case there was some other cache that pointed to the old dirname.

answered Aug 14, 2019 at 22:43

therusstheruss

1,7101 gold badge12 silver badges18 bronze badges

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.

answered Mar 3, 2015 at 11:01

BenBen

2,24518 silver badges18 bronze badges

6

I was having the same problem with Netbeans 8.1, Windows 10. It was also hanging when I tried to compile and refactor. It would sometimes say 100% done yet continue background scanning for hours. I closed the project in which this was happening, and switched to a simple project and the problem went away. So I examined my code. I had class A extending class B, then class B importing class A. When I changed this, the endless looping in Ant stopped.

answered Apr 13, 2016 at 3:32

1

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

answered Sep 21, 2016 at 8:38

Sửa lỗi netbean 7.2 trên win 10 năm 2024

Rajitha BandaraRajitha Bandara

7431 gold badge10 silver badges16 bronze badges

This problem is related to one of the project opened in your IDE. As I had been facing the same issue but, after spending two hours on that issue I finally fixed that. Close project one by one or check and close the project where background processing is taking time. After closing the project delete the .nbproject folder and re-import the same project into your IDE.

answered Oct 10, 2016 at 0:48

Wasif KirmaniWasif Kirmani

1,3054 gold badges23 silver badges43 bronze badges

It should be called foreground scanning of projects. Closing the program and restarting solves it for me sometimes.

answered Mar 30, 2017 at 13:03

Sửa lỗi netbean 7.2 trên win 10 năm 2024

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!!

answered Jul 14, 2017 at 10:04

Sửa lỗi netbean 7.2 trên win 10 năm 2024

21stking21stking

1,2211 gold badge12 silver badges19 bronze badges

In my Laravel case ,got this "forever scanning" because the project was created in another IDE. I put the old IDE related folders

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)

7 ,

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)

8 ,

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)

9 into `C:\Program Files\NetBeans 8.0.2\ide\modules`0 . Relaunched NetBeans as admin. It will scan a little bit but next time wont stick on that.