java Netbeans 卡在启动时
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33209568/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Netbeans stuck at startup
提问by Razlo3p
I was working with a big project on Netbeans. I attacked some sourcecode on third part library and all went smooth. Today i have the following popup message (i already had seen before obviously):
我正在处理一个关于 Netbeans 的大项目。我攻击了第三方库上的一些源代码,一切顺利。今天我有以下弹出消息(我之前显然已经看到过):
The file [...] cannot be safely opened with encoding windows-1252. Do you want to continue opening it?
无法使用编码 windows-1252 安全地打开文件 [...]。要继续打开吗?
The twe button, yes and no, are not responsive. If i close the popup with the red cross it does nothing after a 1 sec loading. There is a way to "clean" the open file in the netbeans workspace to avoid this error?
twe 按钮,是和否,没有响应。如果我用红十字关闭弹出窗口,它在加载 1 秒后什么也不做。有没有办法“清理”netbeans 工作区中打开的文件以避免此错误?
SO Windows 8.1, Netbeans 8.0.2
所以 Windows 8.1,Netbeans 8.0.2
Thanks.
谢谢。
回答by OldCurmudgeon
One general solution to this kind of problem can be to clear the netbeans cache.
此类问题的一种通用解决方案是清除 netbeans 缓存。
Quit NetBeans and find the cache folder - mine is at C:\Users\OldCurmudgeon\AppData\Local\NetBeans\Cache
. Delete the whole folder - this can take a while as there can be a lotof files in there.
退出 NetBeans 并找到缓存文件夹 - 我的在C:\Users\OldCurmudgeon\AppData\Local\NetBeans\Cache
. 删除整个文件夹 - 这可能需要一段时间,因为那里可能有很多文件。
Netbeans will create a new one on next start.
Netbeans 将在下次启动时创建一个新的。
Note that this will slow down netbeans for a while but it won't be long before it is back up to speed again.
请注意,这会在一段时间内减慢 netbeans 的速度,但不久之后它就会再次恢复速度。
回答by Pichet Jiranarumit
- Quit NetBeans.
- go to the last Project folder then remove the project from the folder.
- Open NetBeans.
- 退出 NetBeans。
- 转到最后一个项目文件夹,然后从文件夹中删除项目。
- 打开 NetBeans。