【发布时间】:2013-06-25 16:55:09
【问题描述】:
我正在运行 Ubuntu 12.10,并且正在尝试安装 Netbeans 7.1(或更高版本) 我有 .sh 文件,但它不会安装,错误出现在这里:
[2013-06-27 19:11:28.918]: at org.netbeans.installer.Installer.main(Installer.java:81)
[2013-06-27 19:11:28.918]: An error occured while initializing the NetBeans IDE installer UI.
[2013-06-27 19:11:28.918]: Most probably the running JVM is not compatible with the current platform.
[2013-06-27 19:11:28.919]: See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.
[2013-06-27 19:11:28.919]: /usr/local/java/jre1.7.0_25/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
[2013-06-27 19:11:28.919]:
[2013-06-27 19:11:28.919]: Exception:
[2013-06-27 19:11:28.919]: java.lang.UnsatisfiedLinkError:
[2013-06-27 19:11:28.919]: /usr/local/java/jre1.7.0_25/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
[2013-06-27 19:11:28.919]:
[2013-06-27 19:11:28.919]: You can get more details about the issue in the installer log file:
[2013-06-27 19:11:28.919]: /root/.nbi/log/20130627191128.log
我在任何目录中都没有 libXtst.so.6 文件,而且我似乎无法在任何地方找到它可以下载。有没有其他人遇到过这个问题,或者知道解决方法?
【问题讨论】:
-
/usr/local/java/jre1.7.0_25 是从哪里来的?
-
这是甲骨文。我在打开 jre 时遇到问题
-
我强烈建议只运行
sudo apt-get install openjdk-6- jdk并查看该Java 版本是否足以满足您的目的。那是在你的平台上构建的,应该可以开箱即用 -
我以前有过,但它在使用 Netbeans 时出现错误。相信我,我宁愿使用 openjdk/jre 而不是 Oracle 的,但无论出于何种原因,它都不适用于 Netbeans。
-
每当您在 Linux 下遇到软件包问题时,请检查支持哪些平台。 wiki.netbeans.org/NetBeans_70_Supported_Platforms - 如果“我需要这个工作”很重要,那么你应该只使用其中一个。这里是 Ubuntu 10.10。
标签: java linux ubuntu netbeans command-line