![无法以普通用户身份运行 netbeans!](https://linux22.com/image/968982/%E6%97%A0%E6%B3%95%E4%BB%A5%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E8%BA%AB%E4%BB%BD%E8%BF%90%E8%A1%8C%20netbeans%EF%BC%81.png)
我已经通过运行从 netbeans.org 下载的“netbeans-7.3.1-linux.sh”文件在 ubuntu 13.04 上安装了 netbeans 7.3.1,问题是每当我以普通用户身份运行 netbeans 时,它都会卡在加载模块上,然后退出,并且没有显示任何错误,我尝试通过命令行运行它并收到以下消息
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Java HotSpot(TM) Client VM warning: ignoring option PermSize=32m; support was removed in 8.0
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00000000, pid=8810, tid=2168195904
JRE version: Java(TM) SE Runtime Environment (8.0-b100) (build 1.8.0-ea-b100)
Java VM: Java HotSpot(TM) Client VM (25.0-b42 mixed mode linux-x86 )
Problematic frame:
C 0x00000000
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited" before starting Java again
An error report file with more information is saved as:
/home/nmaybar/hs_err_pid8810.log
[thread -2088768704 also had an error]
If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
/home/nmaybar/netbeans-7.3.1/platform/lib/nbexec: line 610: 8810 Aborted (core dumped) "/usr/lib/jvm/java-8-oracle/bin/java" -Djdk.home="/usr/lib/jvm/java-8-oracle" -classpath "/home/nmaybar/netbeans-7.3.1/platform/lib/boot.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/org-openide-modules.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/org-openide-util.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/org-openide-util-lookup.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/boot_ja.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/boot_pt_BR.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/boot_ru.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/boot_zh_CN.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-modules_ja.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-modules_ru.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util_ja.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util_pt_BR.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util_ru.jar:/home/nmaybar/netbeans-7.3.1/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-8-oracle/lib/dt.jar:/usr/lib/jvm/java-8-oracle/lib/tools.jar" -Dnetbeans.default_userdir_root="/home/nmaybar/.netbeans" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/home/nmaybar/netbeans-7.3.1/nb:/home/nmaybar/netbeans-7.3.1/ergonomics:/home/nmaybar/netbeans-7.3.1/ide:/home/nmaybar/netbeans-7.3.1/java:/home/nmaybar/netbeans-7.3.1/apisupport:/home/nmaybar/netbeans-7.3.1/webcommon:/home/nmaybar/netbeans-7.3.1/websvccommon:/home/nmaybar/netbeans-7.3.1/enterprise:/home/nmaybar/netbeans-7.3.1/mobility:/home/nmaybar/netbeans-7.3.1/profiler:/home/nmaybar/netbeans-7.3.1/python:/home/nmaybar/netbeans-7.3.1/php:/home/nmaybar/netbeans-7.3.1/identity:/home/nmaybar/netbeans-7.3.1/harness:/home/nmaybar/netbeans-7.3.1/cnd:/home/nmaybar/netbeans-7.3.1/dlight:/home/nmaybar/netbeans-7.3.1/groovy:/home/nmaybar/netbeans-7.3.1/extra:/home/nmaybar/netbeans-7.3.1/javacard:/home/nmaybar/netbeans-7.3.1/javafx:" -Dnetbeans.home="/home/nmaybar/netbeans-7.3.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.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/nmaybar/.netbeans/7.3.1/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/nmaybar/.netbeans/7.3.1" "--cachedir" "/home/nmaybar/.cache/netbeans/7.3.1" "--branding" "nb" 0<&0
nmaybar@nmaybar-SVS13118GAB:~$ sudo netbeans-7.3.1/bin/netbeans
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Java HotSpot(TM) Client VM warning: ignoring option PermSize=32m; support was removed in 8.0
但是当我使用 sudo 命令以 root 身份运行 netbeans 时它可以工作。
那么问题是什么?
提前感谢您的帮助。