webdevqa.jp.net

Netbeansが新しいプロジェクトを作成しないのはなぜですか?

NetBeans 8.2をインストールしたところ、すべてうまくいったようです。必要のない1つまたは2つのモジュールを削除し、最初に実行したときにデフォルトのワークスペースを変更することを除いて、ほぼ100%デフォルトを実行しました。

今では何もしません。 File->New Projectコマンドをクリックしても、何も起こりません。他のいくつかのコマンドをクリックしても、何も起こりません。

IDEプロジェクトを作成しようとすると、ログにスタックトレースが表示されます。これは次のトレースです。

SEVERE [global]
Java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory
    at Java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.Java:582)
    at Java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.Java:185)
    at Java.base/Java.lang.ClassLoader.loadClass(ClassLoader.Java:496)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.Java:222)
Caused: Java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from [email protected][org.openide.awt] with possible defining loaders null and declared parents [[email protected]cd8, [email protected][org.netbeans.api.annotations.common]]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.Java:224)
    at Java.base/Java.lang.ClassLoader.loadClass(ClassLoader.Java:496)
Caused: Java.lang.NoClassDefFoundError: javax/activation/DataContentHandlerFactory
    at org.openide.awt.QuickSearch.setUpSearch(QuickSearch.Java:369)
    at org.openide.awt.QuickSearch.<init>(QuickSearch.Java:107)
    at org.openide.awt.QuickSearch.attach(QuickSearch.Java:197)
    at org.openide.awt.QuickSearch.attach(QuickSearch.Java:125)
    at org.openide.Explorer.view.TreeView$ExplorerTree.setupSearch(TreeView.Java:1936)
    at org.openide.Explorer.view.TreeView$ExplorerTree.<init>(TreeView.Java:1753)
    at org.openide.Explorer.view.TreeView.initializeTree(TreeView.Java:299)
    at org.openide.Explorer.view.TreeView.<init>(TreeView.Java:238)
    at org.openide.Explorer.view.TreeView.<init>(TreeView.Java:228)
    at org.openide.Explorer.view.BeanTreeView.<init>(BeanTreeView.Java:98)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesBeanTreeView.<init>(TemplatesPanelGUI.Java:679)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.createComponent(TemplatesPanelGUI.Java:729)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.initGUI(TemplatesPanelGUI.Java:644)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.<init>(TemplatesPanelGUI.Java:535)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.<init>(TemplatesPanelGUI.Java:719)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.<init>(TemplatesPanelGUI.Java:719)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.initComponents(TemplatesPanelGUI.Java:421)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.<init>(TemplatesPanelGUI.Java:156)
    at org.netbeans.modules.project.ui.ProjectTemplatePanel.getComponent(ProjectTemplatePanel.Java:187)
    at org.netbeans.modules.project.ui.NewProjectWizard.createTemplateChooser(NewProjectWizard.Java:104)
    at org.openide.loaders.TemplateWizard.templateChooser(TemplateWizard.Java:320)
    at org.openide.loaders.TemplateWizardIterImpl.firstPanel(TemplateWizardIterImpl.Java:87)
    at org.openide.loaders.TemplateWizardIterImpl.current(TemplateWizardIterImpl.Java:144)
    at org.openide.loaders.TemplateWizardIteratorWrapper.current(TemplateWizardIteratorWrapper.Java:92)
    at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.Java:844)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.Java:822)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.Java:761)
    at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.Java:84)
    at org.openide.WizardDescriptor._updateState(WizardDescriptor.Java:800)
    at org.openide.WizardDescriptor.access$200(WizardDescriptor.Java:92)
    at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.Java:2180)
    at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.Java:356)
    at org.openide.loaders.TemplateWizardIterImpl.run(TemplateWizardIterImpl.Java:275)
    at Java.desktop/Java.awt.event.InvocationEvent.dispatch(InvocationEvent.Java:313)
    at Java.desktop/Java.awt.EventQueue.dispatchEventImpl(EventQueue.Java:764)
    at Java.desktop/Java.awt.EventQueue.access$500(EventQueue.Java:97)
    at Java.desktop/Java.awt.EventQueue$3.run(EventQueue.Java:717)
    at Java.desktop/Java.awt.EventQueue$3.run(EventQueue.Java:711)
    at Java.base/Java.security.AccessController.doPrivileged(Native Method)
    at Java.base/Java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.Java:89)
    at Java.desktop/Java.awt.EventQueue.dispatchEvent(EventQueue.Java:734)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.Java:159)
[catch] at Java.desktop/Java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.Java:199)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.Java:124)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.Java:113)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.Java:109)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.Java:101)
    at Java.desktop/Java.awt.EventDispatchThread.run(EventDispatchThread.Java:90)
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.project.ui.actions.NewProject$1
Java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory
    at Java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.Java:582)
    at Java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.Java:185)
    at Java.base/Java.lang.ClassLoader.loadClass(ClassLoader.Java:496)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.Java:222)
Caused: Java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from [email protected][org.openide.awt] with possible defining loaders null and declared parents [[email protected], [email protected][org.netbeans.api.annotations.common]]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.Java:224)
    at Java.base/Java.lang.ClassLoader.loadClass(ClassLoader.Java:496)
Caused: Java.lang.NoClassDefFoundError: javax/activation/DataContentHandlerFactory
    at org.openide.awt.QuickSearch.setUpSearch(QuickSearch.Java:369)
    at org.openide.awt.QuickSearch.<init>(QuickSearch.Java:107)
    at org.openide.awt.QuickSearch.attach(QuickSearch.Java:197)
    at org.openide.awt.QuickSearch.attach(QuickSearch.Java:125)
    at org.openide.Explorer.view.TreeView$ExplorerTree.setupSearch(TreeView.Java:1936)
    at org.openide.Explorer.view.TreeView$ExplorerTree.<init>(TreeView.Java:1753)
    at org.openide.Explorer.view.TreeView.initializeTree(TreeView.Java:299)
    at org.openide.Explorer.view.TreeView.<init>(TreeView.Java:238)
    at org.openide.Explorer.view.TreeView.<init>(TreeView.Java:228)
    at org.openide.Explorer.view.BeanTreeView.<init>(BeanTreeView.Java:98)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesBeanTreeView.<init>(TemplatesPanelGUI.Java:679)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.createComponent(TemplatesPanelGUI.Java:729)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.initGUI(TemplatesPanelGUI.Java:644)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.<init>(TemplatesPanelGUI.Java:535)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.<init>(TemplatesPanelGUI.Java:719)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$CategoriesPanel.<init>(TemplatesPanelGUI.Java:719)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.initComponents(TemplatesPanelGUI.Java:421)
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.<init>(TemplatesPanelGUI.Java:156)
    at org.netbeans.modules.project.ui.ProjectTemplatePanel.getComponent(ProjectTemplatePanel.Java:187)
    at org.netbeans.modules.project.ui.NewProjectWizard.createTemplateChooser(NewProjectWizard.Java:104)
    at org.openide.loaders.TemplateWizard.templateChooser(TemplateWizard.Java:320)
    at org.openide.loaders.TemplateWizardIterImpl.firstPanel(TemplateWizardIterImpl.Java:87)
    at org.openide.loaders.TemplateWizardIterImpl.current(TemplateWizardIterImpl.Java:144)
    at org.openide.loaders.TemplateWizardIteratorWrapper.current(TemplateWizardIteratorWrapper.Java:92)
    at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.Java:844)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.Java:822)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.Java:761)
    at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.Java:84)
    at org.openide.loaders.TemplateWizard$2.run(TemplateWizard.Java:497)
    at org.openide.loaders.TemplateWizard$2.run(TemplateWizard.Java:494)
    at org.netbeans.modules.openide.util.NbMutexEventProvider$Event$1AWTWorker.run(NbMutexEventProvider.Java:156)
    at Java.desktop/Java.awt.event.InvocationEvent.dispatch(InvocationEvent.Java:303)
    at Java.desktop/Java.awt.EventQueue.dispatchEventImpl(EventQueue.Java:764)
    at Java.desktop/Java.awt.EventQueue.access$500(EventQueue.Java:97)
    at Java.desktop/Java.awt.EventQueue$3.run(EventQueue.Java:717)
    at Java.desktop/Java.awt.EventQueue$3.run(EventQueue.Java:711)
    at Java.base/Java.security.AccessController.doPrivileged(Native Method)
    at Java.base/Java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.Java:89)
    at Java.desktop/Java.awt.EventQueue.dispatchEvent(EventQueue.Java:734)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.Java:159)
    at Java.desktop/Java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.Java:199)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.Java:124)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.Java:113)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.Java:109)
    at Java.desktop/Java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.Java:101)
[catch] at Java.desktop/Java.awt.EventDispatchThread.run(EventDispatchThread.Java:90)
INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogParser]: Unpaired license 00000008 without any module.
INFO [null]: Last record repeated again.
1
ProfK

Jdkのバージョンを明確にしてください。私の場合、次の解決策を使用します。NetBeans8.2はjdk 9と互換性がありません。一時的にディレクトリの名前をjdk-9に変更し、再起動時にデフォルトのjdkhomeを変更します。または、etc\netbeans.confのnetbeans_jdkhomeを変更します。

2
Den Y.

多分これも役立ちます。

JDK9はNetbeans8.2ではまだ機能しません。少なくとも JDK 8JRE 8 が必要です。

コマンドラインを開き、「javac -version」と入力して、JDKのバージョンを確認します。

NetBeansでは、[ツール]タブで[Javaプラットフォーム]を選択し、[プラットフォームの追加](jdkフォルダー)を使用してJDK8をデフォルトとして追加します。または、netbeansを再インストールして、インストール中にJDK8を選択してみてください。

いくつかの答え ここここ

0
Tech-IO