我想知道如何在Netbeans 13中自定义启动窗口面板/ui,以便它在IDE重新启动后有效地保持。
在左侧边栏面板中,打开IDE时,将显示Projects
,Files
与Services
,Navigator
位于此面板得下半部分.
在底部面板上,我有Notifications
,它总是打开的,即使没有要查看的内容。
我配置的面板在IDE启动时不会保留,并且总是恢复为这些默认面板。
在左侧栏中,Projects
和Services
,在底部任务栏中,Terminal
但是,当IDE关闭并重新打开时,这些设置并不持久,而是始终恢复为前面提到的默认设置。
原来我打开的文件在升级到v13后也不能在IDE启动时保存,但通过运行Window > Reset Windows
并重新启动IDE纠正了这一点,它们现在可以在启动时按预期恢复。但这对侧边栏面板或终端没有影响。(谢谢@skomisa提醒我这样做)
我的系统环境的一些背景:
- 从Netbeans版本12.4开始,我在此系统上进行了更新,在每次后续升级时执行标准的设置导入过程。
- 我无法在线找到当前版本的文档。大多数可用的相关文档适用于版本7.2或8.1
- 我在Manjaro Linux上。我的preferences文件夹位于
/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]]
1条答案
按热度按时间bhmjp9jg1#
原来这是由于Netbeans没有使用正确的Java版本造成的。我通过将Java的默认系统版本设置为17.0.3来纠正这一点。
对于Manjaro/Arch用户来说,有一个custom command可以做到这一点。你可以运行
archlinux-java status
来确定你的默认值,然后运行sudo archlinux-java set <version>
来设置它。其他Linux发行版可能会有所不同,但是如果所有其他发行版都失败了,总会有一个通用的bash_profile method。Mac用户可能会使用this approach,Windows用户可能会使用this way。或者,如果系统范围内的更改不符合您的需要,Netbeans将为引导时使用的版本指定own configuration。