如何在 Netbeans 13 中自定义启动用户界面
How do I customize the startup user interface in Netbeans 13
我想知道如何在 Netbeans 13 中自定义启动 window panels/ui,以便它在 IDE 次重新启动后有效地持续存在。
在左侧边栏面板上,当IDE 已打开。
在底部面板上,我有 Notifications
始终打开,即使有 none 需要查看也是如此。
我配置的面板不会在 IDE 次启动后持续存在,并且总是恢复为这些默认值。通常我使用的面板如下:
在左侧边栏中,Projects
和 Services
在底部任务栏中,Terminal
但是当 IDE 关闭并重新打开时这些不会持续存在,而是总是恢复到上述默认值。
最初,我打开的文件在更新到 v13 后也不会在 IDE 次启动后持续存在,但这已被 运行 Window > Reset Windows
并重新启动 IDE ,他们现在按预期在启动时恢复。然而,这对侧边栏面板或终端没有影响。
(感谢@skomisa 提醒我这样做)
关于我的系统环境的一些上下文:
我从 Netbeans 版本 12.4 开始更新这个系统,在每次后续升级时对设置执行标准导入过程。
我无法在网上找到当前版本的文档。大多数可用的相关文档适用于版本 7.2 或 8.1
我在 Manjaro Linux。我的首选项文件夹位于 /home/mopsyd/.netbeans/13/
,文件夹权限为 755
。乍一看,其中的文件似乎遵循正确的文件权限格式。
视图的内容 > IDE 日志
-------------------------------------------------------------------------------
>Log Session: Monday, April 25, 2022 1:02:22 AM EDT
>System Info:
Product Version = Apache NetBeans IDE 13
Operating System = Linux version 5.4.188-1-MANJARO running on amd64
Java; VM; Vendor = 1.8.0_332; OpenJDK 64-Bit Server VM 25.332-b04; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_332-b04
Java Home = /usr/lib/jvm/java-8-openjdk/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/mopsyd
Current Directory = /home/mopsyd
User Directory = /home/mopsyd/.netbeans/13
Cache Directory = /home/mopsyd/.cache/netbeans/13
Installation = /usr/lib/netbeans/nb
/usr/lib/netbeans/ergonomics
/usr/lib/netbeans/ide
/usr/lib/netbeans/extide
/usr/lib/netbeans/java
/usr/lib/netbeans/apisupport
/usr/lib/netbeans/webcommon
/usr/lib/netbeans/websvccommon
/usr/lib/netbeans/enterprise
/usr/lib/netbeans/profiler
/usr/lib/netbeans/php
/usr/lib/netbeans/harness
/usr/lib/netbeans/groovy
/usr/lib/netbeans/javafx
/usr/lib/netbeans/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk/jre/classes:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/mariadb-java-client.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jaccess.jar
Application Classpath = /usr/lib/netbeans/platform/lib/boot.jar:/usr/lib/netbeans/platform/lib/org-openide-modules.jar:/usr/lib/netbeans/platform/lib/org-openide-util.jar:/usr/lib/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/lib/netbeans/platform/lib/org-openide-util-ui.jar
Startup Classpath = /usr/lib/netbeans/platform/core/org-netbeans-libs-asm.jar:/usr/lib/netbeans/platform/core/asm-tree-9.2.jar:/usr/lib/netbeans/platform/core/asm-9.2.jar:/usr/lib/netbeans/platform/core/asm-commons-9.2.jar:/usr/lib/netbeans/platform/core/core-base.jar:/usr/lib/netbeans/platform/core/org-openide-filesystems.jar:/usr/lib/netbeans/platform/core/core.jar:/usr/lib/netbeans/platform/core/org-openide-filesystems-compat8.jar:/usr/lib/netbeans/nb/core/org-netbeans-upgrader.jar:/usr/lib/netbeans/nb/core/locale/core_nb.jar
-------------------------------------------------------------------------------
INFO [org.netbeans.modules.netbinox]: Install area set to file:/usr/lib/netbeans/
WARNING [org.netbeans.core.modules]: the modules [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.
INFO [org.netbeans.modules.cnd.apt.debug.APTTraceFlags]: C/C++ code model: using old [ CND ] preprocessor
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
**
MODULE LOADOUT TRUNCATED DUE TO
MESSAGE LENGTH EXCEEDING ALLOWABLE
POST LIMIT
**
org.netbeans.modules.editor.deprecated.pre65formatting/0 [1.46.0.1.6.23.55 1 13-00d6d969bf4d9b14e7406c9ee9cc13a61dc39655]
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.9.1.v20140110-1610 started
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: no suitable found, using fallback.
INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: Fallback system proxy resolver: no http_proxy variable found
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded.
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: fell to default (correct if direct mode went before)
INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL
INFO [org.netbeans.modules.cnd.utils.cache.CndFileUtils]: C/C++ File Utils: using case-sensitive file system
INFO [org.netbeans.ui.metrics.vcs]: USG_VCS_CLIENT
INFO [org.netbeans.modules.php.editor.parser.GSFPHPParser]: Parsing of big PHP files enabled: false (max size: 5,000,000)
Diagnostic information
Input arguments:
-Djdk.home=/usr/lib/jvm/default-runtime
-Dnetbeans.default_userdir_root=/home/mopsyd/.netbeans
-Dnetbeans.dirs=/usr/lib/netbeans/nb:/usr/lib/netbeans/ergonomics:/usr/lib/netbeans/ide:/usr/lib/netbeans/extide:/usr/lib/netbeans/java:/usr/lib/netbeans/apisupport:/usr/lib/netbeans/webcommon:/usr/lib/netbeans/websvccommon:/usr/lib/netbeans/enterprise:/usr/lib/netbeans/mobility:/usr/lib/netbeans/profiler:/usr/lib/netbeans/python:/usr/lib/netbeans/php:/usr/lib/netbeans/identity:/usr/lib/netbeans/harness:/usr/lib/netbeans/cnd:/usr/lib/netbeans/cndext:/usr/lib/netbeans/dlight:/usr/lib/netbeans/groovy:/usr/lib/netbeans/extra:/usr/lib/netbeans/javacard:/usr/lib/netbeans/javafx:
-Dnetbeans.home=/usr/lib/netbeans/platform
-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-XX:+UseStringDeduplication
-Xss2m
-Dapple.laf.useScreenMenuBar=true
-Dapple.awt.graphics.UseQuartz=true
-Dsun.java2d.noddraw=true
-Dsun.java2d.dpiaware=true
-Dsun.zip.disableMemoryMapping=true
-Dplugin.manager.check.updates=false
-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.lang.ref=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED
--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED
--add-modules=jdk.jshell
--add-exports=java.desktop/sun.awt=ALL-UNNAMED
--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED
--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED
--add-exports=java.desktop/sun.swing=ALL-UNNAMED
--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED
--add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
--add-exports=java.management/sun.management=ALL-UNNAMED
--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.im=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
-XX:+IgnoreUnrecognizedVMOptions
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/mopsyd/.netbeans/13/var/log/heapdump.hprof
-Djava.security.manager=allow
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 248.0MB maximum 3525.5MB
Non heap memory usage: initial 2.4MB maximum -1b
Garbage collector: PS Scavenge (Collections=9 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=3 Total time spent=0s)
Classes: loaded=12341 total loaded=12341 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 16,629,919,744
INFO [null]: Total physical memory 16,629,919,744
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask@44fa3011 : class org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask ignored cancel for 1,188 ms.
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: YES, package.json: YES, gulpfile.js: YES, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [null]: Last record repeated 2 more times.
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: NO, package.json: NO, gulpfile.js: NO, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: NO, package.json: YES, gulpfile.js: YES, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [null]: Last record repeated again.
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [null]: Last record repeated 2 more times.
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [null]: Last record repeated again.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 88 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/oroboros-core-documentation took: 65 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: jar:file:/usr/lib/netbeans/php/docs/phpsigfiles.zip!/phpstubs/phpruntime/ took: 25 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: nbfs://nbhost/SystemFileSystem/PHP/RuntimeLibraries/ took: 6 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/core took: 1,962 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/core/tests/phpunit took: 16 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/NetBeansProjects/Intile Auction/html/core took: 38 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/reststubs.zip took: 119 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/domstubs.zip took: 13 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/scratchpad took: 9 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/oroboros-core/tests/development took: 641 ms (New or modified files: 2, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/test took: 929 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
logMessage: MessageParams [
type = Error
message = "[tsserver] npm notice \nnpm notice New major version of npm available! 7.11.2 -> 8.7.0\nnpm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.7.0>\nnpm notice Run `npm install -g npm@8.7.0` to update!\nnpm notice \n"
]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/oroboros-core took: 656 ms (New or modified files: 2, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/dashboard-demo took: 484 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/corestubs.zip took: 94 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/dynamiq-web-application took: 823 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/intile took: 1,689 ms (New or modified files: 7, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 16 source roots took: 7,569 ms (New or modified files: 12, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 7,870 ms.
log4j:WARN No appenders could be found for logger (nu.validator.source.LocationRecorder).
log4j:WARN Please initialize the log4j system properly.
INFO [org.netbeans.modules.git.status.cache]: refreshAllRoots: nested repository found: /srv/http/oroboros-core/tests/development contains null
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject@69171ba2[MultiFileObject@4bcdbe66[Actions/Help/master-help.xml]]
事实证明,这是由于 Netbeans 未使用正确的 Java 版本而导致的。我通过将 java 的默认系统版本设置为 17.0.3.
来更正此问题
对于 Manjaro/Arch 用户,有一个 custom command to do this. You can run archlinux-java status
to determine your default, and sudo archlinux-java set <version>
to set it. Various other linux distros may differ, but there is always the universal bash_profile method if all else fails. Mac users may take this approach, and Windows users may do it this way。
或者,如果系统范围的更改不符合您的需要,Netbeans 会own configuration 启动哪个版本。
我想知道如何在 Netbeans 13 中自定义启动 window panels/ui,以便它在 IDE 次重新启动后有效地持续存在。
在左侧边栏面板上,当IDE 已打开。
在底部面板上,我有 Notifications
始终打开,即使有 none 需要查看也是如此。
我配置的面板不会在 IDE 次启动后持续存在,并且总是恢复为这些默认值。通常我使用的面板如下:
在左侧边栏中,Projects
和 Services
在底部任务栏中,Terminal
但是当 IDE 关闭并重新打开时这些不会持续存在,而是总是恢复到上述默认值。
最初,我打开的文件在更新到 v13 后也不会在 IDE 次启动后持续存在,但这已被 运行 Window > Reset Windows
并重新启动 IDE ,他们现在按预期在启动时恢复。然而,这对侧边栏面板或终端没有影响。
(感谢@skomisa 提醒我这样做)
关于我的系统环境的一些上下文:
我从 Netbeans 版本 12.4 开始更新这个系统,在每次后续升级时对设置执行标准导入过程。
我无法在网上找到当前版本的文档。大多数可用的相关文档适用于版本 7.2 或 8.1
我在 Manjaro Linux。我的首选项文件夹位于
/home/mopsyd/.netbeans/13/
,文件夹权限为755
。乍一看,其中的文件似乎遵循正确的文件权限格式。
视图的内容 > IDE 日志
-------------------------------------------------------------------------------
>Log Session: Monday, April 25, 2022 1:02:22 AM EDT
>System Info:
Product Version = Apache NetBeans IDE 13
Operating System = Linux version 5.4.188-1-MANJARO running on amd64
Java; VM; Vendor = 1.8.0_332; OpenJDK 64-Bit Server VM 25.332-b04; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_332-b04
Java Home = /usr/lib/jvm/java-8-openjdk/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/mopsyd
Current Directory = /home/mopsyd
User Directory = /home/mopsyd/.netbeans/13
Cache Directory = /home/mopsyd/.cache/netbeans/13
Installation = /usr/lib/netbeans/nb
/usr/lib/netbeans/ergonomics
/usr/lib/netbeans/ide
/usr/lib/netbeans/extide
/usr/lib/netbeans/java
/usr/lib/netbeans/apisupport
/usr/lib/netbeans/webcommon
/usr/lib/netbeans/websvccommon
/usr/lib/netbeans/enterprise
/usr/lib/netbeans/profiler
/usr/lib/netbeans/php
/usr/lib/netbeans/harness
/usr/lib/netbeans/groovy
/usr/lib/netbeans/javafx
/usr/lib/netbeans/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk/jre/classes:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/mariadb-java-client.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/ext/jaccess.jar
Application Classpath = /usr/lib/netbeans/platform/lib/boot.jar:/usr/lib/netbeans/platform/lib/org-openide-modules.jar:/usr/lib/netbeans/platform/lib/org-openide-util.jar:/usr/lib/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/lib/netbeans/platform/lib/org-openide-util-ui.jar
Startup Classpath = /usr/lib/netbeans/platform/core/org-netbeans-libs-asm.jar:/usr/lib/netbeans/platform/core/asm-tree-9.2.jar:/usr/lib/netbeans/platform/core/asm-9.2.jar:/usr/lib/netbeans/platform/core/asm-commons-9.2.jar:/usr/lib/netbeans/platform/core/core-base.jar:/usr/lib/netbeans/platform/core/org-openide-filesystems.jar:/usr/lib/netbeans/platform/core/core.jar:/usr/lib/netbeans/platform/core/org-openide-filesystems-compat8.jar:/usr/lib/netbeans/nb/core/org-netbeans-upgrader.jar:/usr/lib/netbeans/nb/core/locale/core_nb.jar
-------------------------------------------------------------------------------
INFO [org.netbeans.modules.netbinox]: Install area set to file:/usr/lib/netbeans/
WARNING [org.netbeans.core.modules]: the modules [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.
INFO [org.netbeans.modules.cnd.apt.debug.APTTraceFlags]: C/C++ code model: using old [ CND ] preprocessor
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
**
MODULE LOADOUT TRUNCATED DUE TO
MESSAGE LENGTH EXCEEDING ALLOWABLE
POST LIMIT
**
org.netbeans.modules.editor.deprecated.pre65formatting/0 [1.46.0.1.6.23.55 1 13-00d6d969bf4d9b14e7406c9ee9cc13a61dc39655]
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.9.1.v20140110-1610 started
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: no suitable found, using fallback.
INFO [org.netbeans.core.network.proxy.fallback.FallbackNetworkProxy]: Fallback system proxy resolver: no http_proxy variable found
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded.
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: fell to default (correct if direct mode went before)
INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL
INFO [org.netbeans.modules.cnd.utils.cache.CndFileUtils]: C/C++ File Utils: using case-sensitive file system
INFO [org.netbeans.ui.metrics.vcs]: USG_VCS_CLIENT
INFO [org.netbeans.modules.php.editor.parser.GSFPHPParser]: Parsing of big PHP files enabled: false (max size: 5,000,000)
Diagnostic information
Input arguments:
-Djdk.home=/usr/lib/jvm/default-runtime
-Dnetbeans.default_userdir_root=/home/mopsyd/.netbeans
-Dnetbeans.dirs=/usr/lib/netbeans/nb:/usr/lib/netbeans/ergonomics:/usr/lib/netbeans/ide:/usr/lib/netbeans/extide:/usr/lib/netbeans/java:/usr/lib/netbeans/apisupport:/usr/lib/netbeans/webcommon:/usr/lib/netbeans/websvccommon:/usr/lib/netbeans/enterprise:/usr/lib/netbeans/mobility:/usr/lib/netbeans/profiler:/usr/lib/netbeans/python:/usr/lib/netbeans/php:/usr/lib/netbeans/identity:/usr/lib/netbeans/harness:/usr/lib/netbeans/cnd:/usr/lib/netbeans/cndext:/usr/lib/netbeans/dlight:/usr/lib/netbeans/groovy:/usr/lib/netbeans/extra:/usr/lib/netbeans/javacard:/usr/lib/netbeans/javafx:
-Dnetbeans.home=/usr/lib/netbeans/platform
-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-XX:+UseStringDeduplication
-Xss2m
-Dapple.laf.useScreenMenuBar=true
-Dapple.awt.graphics.UseQuartz=true
-Dsun.java2d.noddraw=true
-Dsun.java2d.dpiaware=true
-Dsun.zip.disableMemoryMapping=true
-Dplugin.manager.check.updates=false
-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.lang.ref=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED
--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED
--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED
--add-modules=jdk.jshell
--add-exports=java.desktop/sun.awt=ALL-UNNAMED
--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED
--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED
--add-exports=java.desktop/sun.swing=ALL-UNNAMED
--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED
--add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED
--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
--add-exports=java.management/sun.management=ALL-UNNAMED
--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.im=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
-XX:+IgnoreUnrecognizedVMOptions
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/mopsyd/.netbeans/13/var/log/heapdump.hprof
-Djava.security.manager=allow
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 248.0MB maximum 3525.5MB
Non heap memory usage: initial 2.4MB maximum -1b
Garbage collector: PS Scavenge (Collections=9 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=3 Total time spent=0s)
Classes: loaded=12341 total loaded=12341 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 16,629,919,744
INFO [null]: Total physical memory 16,629,919,744
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask@44fa3011 : class org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask ignored cancel for 1,188 ms.
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: YES, package.json: YES, gulpfile.js: YES, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [null]: Last record repeated 2 more times.
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: NO, package.json: NO, gulpfile.js: NO, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [org.netbeans.ui.metrics.web.clientproject]: HTML5 project was opened [browser ID: Chrome.INTEGRATED, tests: NO, cordova: NO, Gruntfile.js: NO, bower.json: NO, package.json: YES, gulpfile.js: YES, selenium: NO, JS platforms: ].
INFO [org.netbeans.ui.metrics.php]: Existing PHP project opened [frameworks: ].
INFO [null]: Last record repeated again.
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [null]: Last record repeated 2 more times.
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [org.netbeans.ui.metrics.projects]: USG_PROJECT_OPEN
INFO [null]: Last record repeated again.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 88 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/oroboros-core-documentation took: 65 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: jar:file:/usr/lib/netbeans/php/docs/phpsigfiles.zip!/phpstubs/phpruntime/ took: 25 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: nbfs://nbhost/SystemFileSystem/PHP/RuntimeLibraries/ took: 6 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/core took: 1,962 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/core/tests/phpunit took: 16 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/NetBeansProjects/Intile Auction/html/core took: 38 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/reststubs.zip took: 119 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/domstubs.zip took: 13 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/scratchpad took: 9 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/oroboros-core/tests/development took: 641 ms (New or modified files: 2, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/test took: 929 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
logMessage: MessageParams [
type = Error
message = "[tsserver] npm notice \nnpm notice New major version of npm available! 7.11.2 -> 8.7.0\nnpm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.7.0>\nnpm notice Run `npm install -g npm@8.7.0` to update!\nnpm notice \n"
]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/oroboros-core took: 656 ms (New or modified files: 2, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /home/mopsyd/www/dashboard-demo took: 484 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /usr/lib/netbeans/webcommon/jsstubs/corestubs.zip took: 94 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/dynamiq-web-application took: 823 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /srv/http/intile took: 1,689 ms (New or modified files: 7, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 16 source roots took: 7,569 ms (New or modified files: 12, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 7,870 ms.
log4j:WARN No appenders could be found for logger (nu.validator.source.LocationRecorder).
log4j:WARN Please initialize the log4j system properly.
INFO [org.netbeans.modules.git.status.cache]: refreshAllRoots: nested repository found: /srv/http/oroboros-core/tests/development contains null
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject@69171ba2[MultiFileObject@4bcdbe66[Actions/Help/master-help.xml]]
事实证明,这是由于 Netbeans 未使用正确的 Java 版本而导致的。我通过将 java 的默认系统版本设置为 17.0.3.
来更正此问题对于 Manjaro/Arch 用户,有一个 custom command to do this. You can run archlinux-java status
to determine your default, and sudo archlinux-java set <version>
to set it. Various other linux distros may differ, but there is always the universal bash_profile method if all else fails. Mac users may take this approach, and Windows users may do it this way。
或者,如果系统范围的更改不符合您的需要,Netbeans 会own configuration 启动哪个版本。