gpt4 book ai didi

java - 无法在 NetBeans 8.2 和 Apache 11 w/JDK 8u221 中创建 PHP 项目(卡在 40%)

转载 作者:行者123 更新时间:2023-12-02 09:28:06 26 4
gpt4 key购买 nike

我有一台新的 Windows 10 笔记本电脑,并在上面安装了 NetBeans 8.2。我尝试使用现有源创建一个 PHP 项目,但进度一直停留在 40%。重试多次、重新启动、删除并重新安装 NetBeans 均无济于事。

我需要这个项目才能工作。所以我删除了 NetBeans 8.2 并安装了 Apache NetBeans 11。创建项目时我遇到了同样的问题。进度卡在 40%,IDE 日志中出现 Java 错误 (java.lang.NullPointerException)。

谷歌搜索这个问题似乎表明我应该尝试手动安装 JDK 并在/etc/netbeans.conf 中设置其位置。我执行了此操作并重新打开了 Apache NetBeans。尝试创建项目会导致同样的问题(进度永远停留在 40%)并且显然有相同的 IDE 日志:

-------------------------------------------------------------------------------
>Log Session: Tuesday, October 1, 2019 4:55:39 PM BST
>System Info:
Product Version = Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_221; Java HotSpot(TM) 64-Bit Server VM 25.221-b11; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_221-b11
Java Home = C:\Program Files\Java\jdk1.8.0_221\jre
System Locale; Encoding = en_GB (nb); Cp1252
Home Directory = C:\Users\44780
Current Directory = C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\bin
User Directory = C:\Users\44780\AppData\Roaming\NetBeans\11.0
Cache Directory = C:\Users\44780\AppData\Local\NetBeans\Cache\11.0
Installation = C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\nb
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\ergonomics
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\ide
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\extide
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\java
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\apisupport
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\webcommon
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\websvccommon
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\enterprise
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\profiler
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\php
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\harness
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\groovy
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\javafx
C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform
Boot & Ext. Classpath = C:\Program Files\Java\jdk1.8.0_221\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_221\jre\classes;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\zipfs.jar
Application Classpath = C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\lib\boot.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\lib\org-openide-modules.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\lib\org-openide-util-lookup.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\lib\org-openide-util-ui.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.8.0_221\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_221\lib\tools.jar
Startup Classpath = C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\asm-all-5.0.1.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\core-base.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\core.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\org-netbeans-libs-asm.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\org-openide-filesystems-compat8.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform\core\org-openide-filesystems.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\nb\core\org-netbeans-upgrader.jar;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\nb\core\locale\core_nb.jar
-------------------------------------------------------------------------------
INFO [org.netbeans.modules.netbinox]: Install area set to file:/C:/Users/44780/Documents/Tools/incubating-netbeans-11.0-bin/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.
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [org-netbeans-modules-gradle-GradleDataObject-Extension.xml], but some are: [org-openide-loaders-DataLoaderPool$InstanceLoaderSystem-Extension.xml, org-netbeans-core-startup-layers-SystemFileSystem-Extension.xml, org-netbeans-modules-java-JavaDataObject-Extension.xml, org-netbeans-modules-java-ClassDataObject-Extension.xml, org-netbeans-modules-image-ImageDataObject-serialVersionUID-Extension.xml, org-netbeans-modules-image-ImageDataObject-IMAGE_ICON_BASE-Extension.xml, org-netbeans-modules-image-ImageDataObject-openSupport-Extension.xml, org-netbeans-modules-image-ImageDataObject-printSupport-Extension.xml, org-netbeans-modules-properties-PropertiesDataObject-Extension.xml, org-netbeans-modules-javascript-gulp-file-Gulpfile-Registration.xml, org-netbeans-modules-javascript-grunt-file-Gruntfile-Registration.xml, org-netbeans-modules-javascript2-editor-JsonLanguage-createMultiViewEditorElement-Registration.xml, org-netbeans-modules-php-twig-editor-TwigDataObject-Extension.xml, org-netbeans-modules-javascript-karma-util-KarmaUtils-Registration.xml, org-netbeans-modules-javascript-nodejs-file-PackageJson-Registration.xml, org-netbeans-modules-javascript-bower-file-BowerJson-Registration.xml, org-netbeans-modules-javascript-bower-file-BowerrcJson-Registration.xml, org-netbeans-modules-languages-manifest-MfDataObject-Extension.xml, org-netbeans-modules-languages-apacheconf-ApacheConfDataObject-Registration.xml, org-netbeans-modules-javascript-jstestdriver-JSTestDriverSupport-Registration.xml, org-netbeans-modules-languages-ini-IniDataObject-Extension.xml, org-netbeans-modules-languages-neon-NeonDataObject-Extension.xml, org-netbeans-modules-form-FormDataLoader-Extension.xml, org-netbeans-core-ide-ServiceTabProcessor-Extension.xml, org-netbeans-modules-testng-ui-wizards-TestNGSuiteDataObject-Registration.xml, org-netbeans-modules-css-editor-CssProjectSupport-Extension.xml, org-netbeans-modules-languages-diff-DiffDataObject-Extension.xml, org-netbeans-modules-javascript2-editor-JsLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-javascript2-jade-editor-JadeLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-javascript2-editor-JsonLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-db-sql-loader-SQLDataObject-Extension.xml, org-netbeans-modules-javawebstart-JnlpDataObject-Extension.xml, org-netbeans-modules-j2ee-persistence-unit-PUDataObject-Registration.xml, org-netbeans-modules-jshell-env-JShellDataObject-Extension.xml, org-netbeans-modules-groovy-gsp-GspLanguage-Extension.xml, org-netbeans-modules-languages-yaml-YamlLanguage-Extension.xml, org-netbeans-modules-groovy-editor-api-parser-GroovyLanguage-Extension.xml, org-netbeans-modules-php-editor-index-PHPIndexer-LOG-Extension.xml, org-netbeans-modules-html-HtmlDataObject-Registration.xml, org-netbeans-modules-maven-grammar-POMDataObject-Registration.xml, org-apache-tools-ant-module-loader-AntProjectDataObject-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Namespace.xml, org-netbeans-modules-editor-settings-storage-SettingsProvider-Registration.xml, org-netbeans-modules-j2ee-ddloaders-common-DD2beansDataObject-Registration.xml, org-netbeans-modules-j2ee-sun-ddloaders-SunDescriptorDataObject-Registration.xml, org-netbeans-modules-url-URLDataObject-Extension.xml, org-netbeans-modules-pdf-PDFDataObject-Extension.xml, org-netbeans-modules-php-smarty-editor-TplDataObject-Extension.xml, org-netbeans-modules-tomcat5-ui-nodes-TomcatInstanceNode-createMultiViewEditorElement-Registration.xml, org-netbeans-modules-web-core-jsploader-JspDataObject-Registration.xml, org-netbeans-modules-web-jsf-JSFConfigDataObject-Registration.xml, org-netbeans-modules-web-struts-StrutsConfigDataObject-Namespace.xml, org-netbeans-modules-spring-beans-loader-SpringXMLConfigDataObject-Namespace.xml, org-netbeans-modules-xsl-XSLDataObject-Namespace.xml, org-netbeans-modules-java-jarloader-JarDataObject-Registration.xml, org-netbeans-modules-xml-jaxb-JAXBWizard-Extension.xml, org-netbeans-lib-editor-codetemplates-storage-CodeTemplatesStorage-Namespace.xml, org-netbeans-modules-editor-macros-storage-MacrosStorage-Namespace.xml, mimeresolver-Registration.xml, org-netbeans-modules-web-beans-BeansDataObject-Namespace.xml, org-netbeans-modules-j2ee-sun-ide-sunresources-resourcesloader-SunResourceDataObject-Extension.xml, org-netbeans-modules-profiler-oql-language-OQLLanguageProvider-Extension.xml, org-netbeans-modules-dbschema-jdbcimpl-DBschemaDataObject-Extension.xml, org-netbeans-modules-css-prep-editor-less-LessCslLanguage-Extension.xml, org-netbeans-modules-css-prep-editor-scss-ScssCslLanguage-Extension.xml, org-netbeans-modules-j2ee-persistence-jpqleditor-ui-JPQLEditorTopComponent-Extension.xml, org-netbeans-modules-php-latte-LatteDataObject-Extension.xml, org-netbeans-modules-profiler-snaptracer-impl-NpssDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-HintDataObject-Extension.xml, org-netbeans-modules-javafx2-editor-fxml-FXMLDataObject-Extension.xml, org-netbeans-modules-form-palette-PaletteItemDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_PLAIN_XML-Registration.xml, org-netbeans-modules-xml-DTDDataObject-Extension.xml, org-netbeans-modules-xml-EntityDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_XSD_XML-Registration.xml, org-netbeans-libs-freemarker-FreemarkerFactory-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Registration.xml, resources-Registration.xml, org-netbeans-modules-profiler-ui-NpsDataObject-Registration.xml, org-netbeans-modules-profiler-ui-HprofDataObject-Registration.xml, org-netbeans-modules-javascript-nodejs-file-NodeMimeResolver-Registration.xml, org-netbeans-modules-xml-XMLDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-test-DeclarativeHintsTestDataObject-Extension.xml, org-netbeans-modules-debugger-jpda-truffle-mime-LanguageResolvers-SimpleLanguage-Extension.xml, org-netbeans-modules-debugger-jpda-truffle-mime-LanguageResolvers-R-Extension.xml, org-netbeans-modules-debugger-jpda-truffle-mime-LanguageResolvers-Ruby-Extension.xml, org-netbeans-modules-debugger-jpda-truffle-mime-LanguageResolvers-Python-Extension.xml, org-netbeans-modules-defaults-mime-wav.xml]
WARNING [null]: Last record repeated 2 more times.
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
org.openide.util.lookup [8.37.1 incubator-netbeans-release-404-on-20190319]
org.openide.util [9.11.1 incubator-netbeans-release-404-on-20190319]
org.openide.util.ui [9.12.1 incubator-netbeans-release-404-on-20190319]
org.openide.modules [7.52.1 incubator-netbeans-release-404-on-20190319]
<snip due to character limit>
com.jcraft.jzlib [1.0.7 1.0.7]
com.googlecode.javaewah.JavaEWAH [0.7.9 0.7.9]
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: Windows
INFO [org.netbeans.core.network.proxy.windows.WindowsNetworkProxy]: Windows system proxy resolver: auto detect
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)
Diagnostic information
Input arguments:
-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-XX:+UseStringDeduplication
-Xss2m
-Dnetbeans.logger.console=true
-Djdk.gtk.version=2.2
-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=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.javadoc/com.sun.tools.javadoc.main=ALL-UNNAMED
-XX:+IgnoreUnrecognizedVMOptions
-Djdk.home=C:\Program Files\Java\jdk1.8.0_221
-Dnetbeans.home=C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\platform
-Dnetbeans.user=C:\Users\44780\AppData\Roaming\NetBeans\11.0
-Dnetbeans.default_userdir_root=C:\Users\44780\AppData\Roaming\NetBeans
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=C:\Users\44780\AppData\Roaming\NetBeans\11.0\var\log\heapdump.hprof
-Dsun.awt.keepWorkingSetOnMinimize=true
-Dnetbeans.dirs=C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\nb;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\ergonomics;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\ide;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\extide;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\java;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\apisupport;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\webcommon;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\websvccommon;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\enterprise;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\mobility;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\profiler;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\python;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\php;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\identity;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\harness;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\cnd;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\cndext;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\dlight;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\groovy;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\extra;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\javacard;C:\Users\44780\Documents\Tools\incubating-netbeans-11.0-bin\netbeans\javafx
exit
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 126.0MB maximum 1788.5MB
Non heap memory usage: initial 2.4MB maximum -1b
Garbage collector: PS Scavenge (Collections=8 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=2 Total time spent=0s)
Classes: loaded=6631 total loaded=6631 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 8,437,022,720
WARNING [org.openide.filesystems.Ordering]: Found same position 400 for both Templates/Project/AntJava/J2EE and Templates/Project/AntJava/j2sefreeform.xml
WARNING [org.openide.filesystems.Ordering]: Found same position 200 for both Templates/Project/AntJava/Web and Templates/Project/AntJava/org-netbeans-modules-java-j2seproject-ui-wizards-NewJ2SEProjectWizardIterator-library
INFO [org.openide.WizardDescriptor]
java.lang.NullPointerException
at org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.current(NewPhpProjectWizardIterator.java:351)
at org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.uninitialize(NewPhpProjectWizardIterator.java:170)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.uninitialize(TemplateWizard.java:1054)
at org.openide.loaders.TemplateWizardIterImpl.uninitialize(TemplateWizardIterImpl.java:215)
at org.openide.loaders.TemplateWizardIteratorWrapper.uninitialize(TemplateWizardIteratorWrapper.java:131)
at org.openide.WizardDescriptor.callUninitialize(WizardDescriptor.java:1541)
at org.openide.WizardDescriptor.resetWizardOpen(WizardDescriptor.java:1383)
at org.openide.WizardDescriptor.resetWizard(WizardDescriptor.java:1362)
[catch] at org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1346)
at org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1334)
at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1367)
at org.netbeans.core.windows.services.NbPresenter.windowClosing(NbPresenter.java:1257)
at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
at java.awt.Window.processWindowEvent(Window.java:2054)
at javax.swing.JDialog.processWindowEvent(JDialog.java:683)
at java.awt.Window.processEvent(Window.java:2013)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1084)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1060)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1110)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1082)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:105)
at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:115)
at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:75)
at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
at org.openide.util.Mutex.readAccess(Mutex.java:193)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1067)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:241)
at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:167)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject@69261669[MultiFileObject@4d416d96[Actions/Help/master-help.xml]]
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow@203a369e[MultiFileObject@6bfeb124[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
WARNING [null]: Last record repeated again.

我在另一台机器上尝试了相同的步骤。在那里创建项目工作正常。两台机器都有 Apache NetBeans 11 和 JDK 8u221。两者都在 netbeans.conf 中设置了 JDK 路径。第一个无法创建项目;第二个可以。

不幸的是,这确实需要在挂起 40% 的机器上运行。该机器是一台新的工作笔记本电脑,由远程工作人员使用。工作人员必须能够使用现有源创建 PHP 项目才能编辑公司网站。

错误消息告诉我什么有用的信息吗?接下来我应该尝试什么?

最佳答案

这不是一个回答;这只是一些临时建议,以及对进一步信息的请求,该信息太大而无法作为评论发布。

  • 不要使用 NetBeans 11.0,使用最新版本 NetBeans 11.1 instead .
  • 您绝对不需要卸载其他版本的 NetBeans,但明智的做法是一次只运行一个版本。
  • 看起来您已经激活了 PHP,但是您是否尝试过从头开始创建一个简单的 PHP 项目来验证所有内容是否安装正确?如果没有:

    1. 首先,如果您还没有这样做,您需要为 NetBeans 指定一个 PHP 解释器:工具 > 选项 > PHP 选项卡,然后单击浏览... PHP 解释器 字段的 . 按钮,然后导航到 php.exe 的安装。之后,您的屏幕应类似于下面显示的屏幕截图。

      PHPconfiguration

    2. 接下来,创建一个简单的“Hello world”PHP 应用程序:文件 > 新项目 > PHP > PHP 应用程序(注意,不是 PHP 应用程序现有来源)。运行该项目。那样有用吗?如果没有,请描述问题,因为这样应该可以正常工作。

  • 如果您可以创建并运行一个简单的 PHP 项目,请“使用现有源”重复导入,看看问题是否仍然存在。
  • 如果确实如此,接下来要尝试的是导入第二个 PHP 项目,这很简单。这将确定该问题是普遍性的,还是特定于 OP 中的项目的。无论哪种方式,请更新您的问题,将 NetBeans 11.0 的 IDE 日志列表替换为 NetBeans 11.1 的 IDE 日志列表。需要明确的是,我并不是说 11.0 存在问题,但没有理由不使用最新版本的 NetBeans,除非您面临一些雇主限制。
  • 作为另一件事,您可以尝试的另一件事是将一切正常的计算机与出现问题的计算机的 IDE 日志进行比较,检查两个 NetBeans 安装是否存在潜在的显着差异。文件比较工具会对此有所帮助。

如果您遇到任何困难,另请参阅 https://php.tutorials24x7.com/blog/how-to-install-netbeans-11-for-php-on-windows有关在 NetBeans 上设置 PHP 的一般说明。

如果您尝试上述步骤,更新后的状态是什么?

关于java - 无法在 NetBeans 8.2 和 Apache 11 w/JDK 8u221 中创建 PHP 项目(卡在 40%),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58189111/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com