更新后 Netbeans 8.0.1 无法启动 (linux)

Netbeans 8.0.1 not starting after update (linux)

我在 Kubuntu (Ubuntu 14.04.1 LTS) 上使用 netbeans 8.0.1,我刚刚安装了一些 netbeans 更新,因为有一个弹出窗口告诉我安装。当我重新启动 netbeans 时,它不会再启动了。如果我尝试通过命令行启动它,我会收到此错误:

Error: Could not find or load main class org.netbeans.Main

有没有不用重装就能修复的方法?重新配置需要很长时间。

只是对此发表评论:

Is there a way to fix it without reinstalling it? Reconfiguring will take ages.

IDE 配置存储在 ~/.netbeans/version 目录,所以,除非你在 installation_path/etc/netbeans.conf(如 netbeans_jdkhome 和系统属性 netbeans_default_options),您应该可以毫无问题地重新安装它。当然,您始终可以复制当前安装。