Netbeans 无法打开

Netbeans 无法打开

这可能是我自己的错,我删除并重新安装了计算机上的 Java,发生了以下情况:

jeggy@jeggy-XPS:~$ netbeans 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc3f78d5320, pid=2687, tid=140480869590784
#
# 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 13.10, package 6b27-1.12.6-1ubuntu2.1
# Problematic frame:
# C  0x00007fc3f78d5320
[error occurred during error reporting (printing problematic frame), id 0xb]

# An error report file with more information is saved as:
# /home/jeggy/hs_err_pid2687.log
#
# 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:  2687 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/jeggy/.netbeans/7.0/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/jeggy/.netbeans/7.0" "--branding" "nb" 0<&0
jeggy@jeggy-XPS:~$ 

然后它在我的主文件夹中创建一个名为的文件错误日志

更新: 我已经从他们的网站包含所有内容的那个。然后我运行安装文件'sudo sh ./netbeans-7.4-linux.sh' 并得到这个:

在此处输入图片描述

我想你应该告诉我们你是如何卸载并重新安装 Java 的。

我删除了“OpenJDK Java 6 Runtime”和“OpenJDK Java 7 Runtime”,然后通过软件中心重新安装它们

在此处输入图片描述

答案1

尝试重新安装-首先使用以下命令将其删除:

sudo apt-get remove netbeans

或者这个,但它会删除配置文件等:

sudo apt-get purge  netbeans

然后重新安装:

sudo apt-get install netbeans

希望这可以帮助。


编辑:

由于您的回答中似乎提到了 openjdk 6,请尝试版本 7:

apt-get install openjdk-7-jdk

但错误可能是由于没有找到版本 6,因此请执行以下操作:

apt-get install openjdk-6-jdk

有答案这里这也许也有帮助。

答案2

这对我来说很有用:

sudo add-apt-repository ppa:vajdics/netbeans-installer
sudo apt update
sudo apt install netbeans-installer

相关内容