Netbeans 报错 “Not found bundle:com.xxx.xxx in NetBeans xxxx”
今天玩儿Netbeans开发版时遇到了这个错误。具体症状是在启动Netbeans, Splash尚未消失时弹窗:“无法安装某些模块……”,后面紧接着一堆包名:
Warning - could not install some modules: org.apache.commons.logging - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-logging.jar: Not found bundle:org.apache.commons.logging org.apache.ws.commons.util - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-ws-commons-util.jar: Not found bundle:org.apache.ws.commons.util org.apache.commons.io - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-io.jar: Not found bundle:org.apache.commons.io org.apache.commons.codec -
目前来看,此错误可能有两种原因。出现较多的也就是网上很容易搜到的原因是JDK路径设置不对(没有自动搜索到,也没有手动指定):
I had this problem today. Solution is very simply: reinstall NetBeans and when installation manager will ask JDK path, set path to one of your JDK (use selector in menu). Default path "/usr/" or other which IDE set automatically is not actual and after installation you'll cann't change default path!
解决方法是在netbeans.conf
文件中设置正确的JDK
路径,或者重装时指定。
然而,还有一种(可能是Mac特有的)错误形式:缓存混乱导致:
Quick tip: Not found bundle:com.jcraft.jzlib in NetBeans 8.0.1 If you experience errors like: Not found bundle:com.jcraft.jzlib when starting NetBeans 8.0.1 just delete cache folder which is located at: /Users/jdoe/Library/Caches/NetBeans/ where jdoe is your username
解决方法是删掉/Users/用户名/Library/Caches/NetBeans/
目录。相信Window版应该也有类似的缓存目录。