English 中文(简体)
netbeans“请稍候-类路径扫描正在进行中…”
原标题:netbeans "Please wait - classpath scanning in progress..."

When i try to compile netbeans projects i get this message/error : "Please wait - classpath scanning in progress..."

什么都没发生,就好像你必须等待进入才能赢得“你好世界”。。。

Now the first thing is that we have moved to a new office building, but the laptop is the same. It s a very secure enviroment with a lot of "security", can t connect anywhere almost. Also i have changed the user dir in netbeans.conf to save my data in c:Program FilesUser

Any ideas how to fix this? alrady tried reinstalling netbeans, changing save location between standart and newone...

问题回答

只是找到问题的一些想法

  • Look at the CPU - is netbeans busy (100% on one core) or blocking (95% idle)?
  • Standard, ant or maven build? Where are your libraries and do you use absolute or relative paths?
  • Start with a simple "hello world" project (no dependencies), then add one lib (log4j or something similiar), located in a project folder and - if this works - move that lib to other locations (choose locations similiar to the libs on the real classpath)

您可能没有访问包含库的文件夹/共享的权限。或者,正如您提到的安全性,某些病毒扫描程序阻止访问某些高度危险的库。。。

我删除了.netbeans/7.0/modules目录下的所有文件。尽管我丢失了IDE的一些配置,但它开始运行得很好。

http://wiki.netbeans.org/FaqWhatIsUserdir

我听从了安德里亚斯的建议。。。禁用防病毒软件并重新启动netbeans后,一切恢复正常。

根据你的说明,这似乎是一个有趣的问题!在某个地方,netbeans文档写道,问题已经得到解决。但是,有关您的信息,请查看:扫描项目类路径花费的时间太长

此链接可能对您有帮助,也可能对您没有帮助。但是,讨论可能会为解决这一问题提供机会。

非常感谢。

在我的情况下,当在我的项目中添加JavaFX库时:properties>>;库>>;编译器选项卡>>;Classpath选项,我意外地添加了我的根用户(C:userspaulo)以及JavaFXjar文件。这使得NetBeans基本上可以扫描我的整个硬盘。解决方案非常简单:只需回到属性>>;库>>;编译器选项卡>>;类路径选项>>;编辑按钮并删除了“c:userspoulo”,扫描过程几乎立即消失。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签