Netbeans 无法启动,Java 致命错误,除非使用 sudo

Netbeans 无法启动,Java 致命错误,除非使用 sudo

新鲜 13.10 64b

Openjdk 6 在那里,我刚刚从 repo 安装了 Netbeans 7.01,但它不起作用,然后我打开了一个控制台

elect@elect-desktop:~$ netbeans 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007faebdf79325, pid=5251, tid=140388628424448
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.12.6
# Distribution: Ubuntu Saucy Salamander (development branch), package 6b27-1.12.6-1ubuntu2
# Problematic frame:
# C  [libgobject-2.0.so.0+0x14325]  g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv+0x985
#
# An error report file with more information is saved as:
# /home/elect/hs_err_pid5251.log
[thread 140386948781824 also had an error]
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
/usr/share/netbeans/7.0.1/bin/../platform/lib/nbexec: line 548:  5251 Aborted                 (core dumped) "/usr/lib/jvm/java-6-openjdk-amd64/bin/java" -Djdk.home="/usr/lib/jvm/java-6-openjdk-amd64" -Djava.library.path=/usr/lib/jni -classpath "/usr/share/netbeans/7.0.1/platform/lib/boot.jar:/usr/share/netbeans/7.0.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/7.0.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/7.0.1/platform/lib/org-openide-util-lookup.jar:/usr/lib/jvm/java-6-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/usr/share/netbeans/7.0.1/nb:/usr/share/netbeans/7.0.1/bin/../ergonomics:/usr/share/netbeans/7.0.1/ide:/usr/share/netbeans/7.0.1/java:/usr/share/netbeans/7.0.1/bin/../xml:/usr/share/netbeans/7.0.1/apisupport:/usr/share/netbeans/7.0.1/bin/../webcommon:/usr/share/netbeans/7.0.1/bin/../websvccommon:/usr/share/netbeans/7.0.1/bin/../enterprise:/usr/share/netbeans/7.0.1/bin/../mobility:/usr/share/netbeans/7.0.1/bin/../profiler:/usr/share/netbeans/7.0.1/bin/../ruby:/usr/share/netbeans/7.0.1/bin/../python:/usr/share/netbeans/7.0.1/bin/../php:/usr/share/netbeans/7.0.1/bin/../visualweb:/usr/share/netbeans/7.0.1/bin/../soa:/usr/share/netbeans/7.0.1/bin/../identity:/usr/share/netbeans/7.0.1/bin/../uml:/usr/share/netbeans/7.0.1/harness:/usr/share/netbeans/7.0.1/bin/../cnd:/usr/share/netbeans/7.0.1/bin/../dlight:/usr/share/netbeans/7.0.1/bin/../groovy:/usr/share/netbeans/7.0.1/bin/../extra:/usr/share/netbeans/7.0.1/bin/../javafx:/usr/share/netbeans/7.0.1/bin/../javacard:" -Dnetbeans.home="/usr/share/netbeans/7.0.1/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-XX:MaxPermSize=384m' '-Xmx768m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.pmoffscreen=false' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/elect/.netbeans/7.0/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/elect/.netbeans/7.0" "--branding" "nb" 0<&0

环顾四周,第二个答案是,这里Vigintas Labakojis 指出了一些有关权限的问题,我刚刚尝试了 sudo netbeans,它有效。

然后我寻找 ~/.cache/netbeans/

我没有,相反我有

〜/ .netbeans /

然后我在这些文件夹上运行他的命令,但没有作用。

肯定是别的什么原因,你知道吗?

无论如何,我的日志 /home/elect/hs_err_pid5251.log 是这里

答案1

使用 netbeans_jdkhome 变量时,我感觉我没有安装正确的 java,因此我按照说明进行了安装这里然后我修改了 /etc/netbeans.conf

然后我解决了,(我刚刚收到另一个警告说我的 ~/.netbeans 里面有一个文件,所以我用 sudo 运行 nautilus 并尝试再次以图形方式修复它)

附言:不要使用 repo 中的 netbeans 版本,它是破碎的,最好直接从官方网站下载最新的可用版本

相关内容