Is there a way to stop NetBeans scanning projects?

2020-02-02 06:29发布

I don't have much memory on my PC and a pretty weak processor. Although netbeans is by far my favorite IDE it is almost unbearable to use on my present computer because of the project scanning that starts automatically when I open the program.

Is there a way to prevent netbeans from scanning projects?

标签: java netbeans
21条回答
beautiful°
2楼-- · 2020-02-02 06:44

In addition to close unneeded projects (David) you can create project groups containing related projects (or just one):

File > Project Group > New Group....

Project groups can then be opened by pointing at them from the same menu. Best of all: Each group remembers which files were open in the editor windows the last time. I organize all my projects into groups and it reduces scanning significantly.

(btw: There's a handy plugin providing a project group shortcut to the toolbar)

Edit: I am also using Scan on Demand for a while now - really good. Kudos for that answer.

查看更多
够拽才男人
3楼-- · 2020-02-02 06:44

I also face the same problem with netbean 8.2. I just deleted the project by - Right click on the project - Delete the project ( keep unselect delete source code option ). - Again create new project

and its working perfectly now.

Hope its work.

查看更多
我命由我不由天
4楼-- · 2020-02-02 06:46

Try this Netbeans plugin. This reduces the load for some extend.

http://wiki.netbeans.org/ScanOnDemand

查看更多
来,给爷笑一个
5楼-- · 2020-02-02 06:49

Not exactly the case of question, but sometimes "scanning projects" can be stopped just by restarting Netbeans.

查看更多
Emotional °昔
6楼-- · 2020-02-02 06:51

In my case, with jdk 1.8, there is a big issue when there are multiple static imports (see the example). It seems that there is a problem with javac. The compiler is very slow when checking such a .java file and NetBeans scanning is very very slow. It seems that the compilation and scanning time is increasing very fast with each repeated static import. So, if that is your case, just remove repeated imports

package ru.cntp.demo;

import java.math.BigDecimal;

import static java.util.Arrays.asList;
import java.util.List;
import java.util.Map;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.groupingBy;

/**
 *
 * @author sergiu
 */
public class EmployeeRepository {

    public Map<Department, Map<String, Map<String, Map<String, Map<BigDecimal, List<Employee>>>>>> getEmployeesByDepartment() {

        Country germany = new Country("Germany");

        Department germanyDeptOne = new Department("Dept One", germany);

        Employee emp1 = new Employee("Surame", "Name", "Patronymic", BigDecimal.TEN, germanyDeptOne);


        return asList(emp1).stream()
                .collect(groupingBy(Employee::getDepartment,
                        groupingBy(Employee::getSurname,
                                groupingBy(Employee::getName,
                                        groupingBy(Employee::getPatronymic,
                                                groupingBy(Employee::getSalary))))));
    }

}
查看更多
Deceive 欺骗
7楼-- · 2020-02-02 06:53

And another quick thing you can do just delete the nbproject folder inside your project then open the NeteBeans. then the project remove from the list. this I do some times when it got freeze

查看更多
登录 后发表回答