java - Netbeans 8.2 无法启动

标签 java linux netbeans

问题:我启动 Netbeans 8.2,显示启动对话框,它通过启动模块然后退出。 IDE 不启动。在此之后仍在运行某些东西(ps aux | grep netbeans 显示正常的 Netbeans 进程正在运行)我查看了日志文件(~/netbeans-8.2/nb/var/log/ 和 ~/.netbeans/8.2/var/log/`) 并发现了这些警告:

WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module org.netbeans.asciidoc: added = [module org.netbeans.api.templates > 1.0, module org.netbeans.api.progress.compat8 > 1.40, module org.openide.util.ui > 9.3, module org.openide.filesystems.nb, module org.netbeans.api.progress.nb > 1.40, module org.openide.filesystems.compat8] removed = []; details: [#243100: Separate desktop-independent utilities, Separation of desktop and cleanup, Swing dependencies split away, Templates API has been separated into its own module.]
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module show.branch.in.statusbar: added = [module org.netbeans.api.templates > 1.0, module org.openide.util.ui > 9.3, module org.openide.filesystems.nb, module org.openide.filesystems.compat8] removed = []; details: [#243100: Separate desktop-independent utilities, Separation of desktop and cleanup, Templates API has been separated into its own module.]
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module eu.doppel_helix.netbeans.plist.PropertyListSupport: added = [module org.netbeans.api.templates > 1.0, module org.netbeans.modules.csl.types/1 > 1.0, module org.openide.util.ui > 9.3, module org.openide.filesystems.nb, module org.openide.filesystems.compat8, module org.netbeans.modules.editor.document > 1.0, module org.netbeans.modules.parsing.indexing > 9.0] removed = []; details: [#243100: Separate desktop-independent utilities, Separation of Parsing and Indexing APIs, Separation of desktop and cleanup, Splitting parts of csl.api off into csl.types, Templates API has been separated into its own module., The old editor settings and completion APIs have been deprecated, see http://wiki.netbeans.org/EditorSettingsUpgrade and update your module.]
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module nb.maven.project.setjdk: added = [module org.openide.filesystems.nb, module org.openide.filesystems.compat8, module org.openide.util.ui > 9.3] removed = []; details: [#243100: Separate desktop-independent utilities, Separation of desktop and cleanup]
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module de.markiew.netbeans.plugin.restart: added = [module org.openide.util.ui > 9.3] removed = []; details: [#243100: Separate desktop-independent utilities]
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module com.peter.mavenrunner: added = [module org.openide.filesystems.nb, module org.openide.filesystems.compat8] removed = []; details: [Separation of desktop and cleanup]
INFO [org.netbeans.modules.netbinox]: Install area set to file:/home/o.o/netbeans-8.2/
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.form.nb] use org.jdesktop.layout which is deprecated: Use javax.swing.GroupLayout instead. (In form editor: select Form ... in Inspector; change Layout Generation Style to Standard Java 6 code.)
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.java.editor.lib, org.netbeans.modules.web.core.syntax, org.netbeans.modules.xml.text] use org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated.
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.ide.kit, org.netbeans.modules.xml.text] use org.netbeans.modules.editor.structure which is deprecated.
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.java.hints, org.netbeans.modules.maven.hints, org.netbeans.modules.maven.j2ee, org.netbeans.modules.web.beans] use org.netbeans.modules.java.hints.legacy.spi which is deprecated: Use Java Hints SPI (org.netbeans.spi.java.hints) instead.
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [SNIP: very long list of xml files]
WARNING [null]: Last record repeated 2 more times.
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: [SNIP: list of modules]
... [More Info entries]...
WARNING [org.openide.filesystems.Ordering]: Not all children in Toolbars/ marked with the position attribute: [Git], but some are: [File, Clipboard, UndoRedo, Build, Debug, Memory, Standard.xml, Debugging.xml]
INFO [org.netbeans.libs.svnclientadapter]: Javahl client adapter is not available
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jvm/java-8-oracle/jre/lib/amd64:/usr/lib/jvm/java-8-oracle/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: JavaHL not available. Falling back on SvnKit.
INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 0 entries. Elapsed time: 0 ms.
INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: svnClientAdapter running on svnkit

我没有明确运行任何 Netbeans 更新。 Netbeans 会工作几天然后遇到这个问题。

解决方法 Google 大叔说(大多数搜索结果,例如 this 也包括 SO)说要删除 Netbeans 用户目录,即 ~/.netbeans/8.2/(以及 Netbeans 缓存目录)这有效,但我必须重新安装我的插件并重做我的快捷键。

我的系统:

  • Ubuntu 16.04(在 amd64 上运行的 Linux 版本 4.4.0-53-generic;UTF-8;en_GB (nb))
  • Java:1.8.0_101; Java HotSpot(TM) 64 位服务器虚拟机 25.101-b13
  • 运行时:Java(TM) SE 运行时环境 1.8.0_101-b13
  • NetBeans IDE 8.2(内部版本 201609300101)

问题:我应该在哪里寻找导致 Netbeans 无法加载的原因?我讨厌周围的工作,想找到罪魁祸首

最佳答案

如果看到 .locked 文件,请在 ~/.netbeans/8.2/文件夹中查找。 当 netbeans 实例运行或停止时,该文件由 netbeans 创建。 Juste 删除它并再次运行。

关于java - Netbeans 8.2 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41140503/

相关文章:

Java 枚举 - 为什么使用 toString 而不是名称

linux - 找不到 etc 文件夹来处理 hadoop 配置

java - 我无法从 Netbeans 连接数据库

java - 构建 gradle 失败 : can not identify path JDK, CreateProcess 错误=206,文件名或扩展名太长

java - 在运行时进程中执行 'start'

python - 为什么 Python 3 找不到已安装的包(例如 BeautifulSoup4)?

c# - Ubuntu 下最好的 C++ 或 Mono 编程 IDE 是什么?

java - FIleNotFoundException - 表达式的非法开始 - NetBeans

java - NetBeans - Java EE 服务器类路径设置不正确 - 服务器主目录丢失错误

java - 从 Java 1.7 到 Java 1.6 的“try catch”重构