git项目未出现在Netbeans上

时间:2018-06-21 00:31:20

标签: git netbeans-8

我是新手,这似乎是一个非常基本的问题,但我找不到任何答案。

我正在使用Netbeans 8.2,并且我有一个php,css,html,jscript的git存储库。所以我去了Team> Git> Home> Clone repository。我输入URL(https://github.com/xxxx/yyyyy.git),用户名和密码以及目标文件夹。它开始拉动,似乎运行正常。如果我重新运行相同的文件,则会出现错误,表明目标设备已经存在并且不为空。但是,导航或收藏夹中没有任何内容。 我缺少访问该项目的什么? 谢谢。

2 个答案:

答案 0 :(得分:1)

更深入地研究我的问题,之所以找不到该项目,是因为没有出现“项目”窗口。

我尝试了所有建议(Window->重置Windows,Ctrl + 1,File->打开项目等),但没有一个解决了问题。

看其中一篇文章,我决定看一下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:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from ModuleCL@71dbb88[org.openide.awt] with possible defining loaders [ModuleCL@60bd9541[org.netbeans.modules.xml.jaxb.api]] and declared parents [org.netbeans.MainImpl$BootClassLoader@3c19b8ca, ModuleCL@6dbbf6bb[org.netbeans.api.annotations.common]]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
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.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:200)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:182)
    at org.netbeans.modules.project.ui.ProjectTab.getDefault(ProjectTab.java:332)
    at org.netbeans.modules.project.ui.ProjectTab.findDefault(ProjectTab.java:318)
    at org.netbeans.modules.project.ui.ProjectTabAction.actionPerformed(ProjectTabAction.java:92)
    at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
    at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
    at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
    at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
    at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
    at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1176)
    at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2962)
    at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862)
    at java.desktop/java.awt.Component.processEvent(Component.java:6366)
    at java.desktop/java.awt.Container.processEvent(Container.java:2261)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
    at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
    at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:871)
    at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
    at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
    at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4847)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    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 [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:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from ModuleCL@71dbb88[org.openide.awt] with possible defining loaders [ModuleCL@60bd9541[org.netbeans.modules.xml.jaxb.api]] and declared parents [org.netbeans.MainImpl$BootClassLoader@3c19b8ca, ModuleCL@6dbbf6bb[org.netbeans.api.annotations.common]]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
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.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:200)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:182)
    at org.netbeans.modules.project.ui.ProjectTab.getDefault(ProjectTab.java:332)
    at org.netbeans.modules.project.ui.ProjectTab.findDefault(ProjectTab.java:318)
    at org.netbeans.modules.project.ui.ProjectTabAction.actionPerformed(ProjectTabAction.java:92)
    at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
    at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
    at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
    at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
    at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
    at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
    at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1024)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6589)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6354)
    at java.desktop/java.awt.Container.processEvent(Container.java:2261)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4914)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4543)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4484)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2305)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    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 [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:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory starting from ModuleCL@71dbb88[org.openide.awt] with possible defining loaders [ModuleCL@60bd9541[org.netbeans.modules.xml.jaxb.api]] and declared parents [org.netbeans.MainImpl$BootClassLoader@3c19b8ca, ModuleCL@6dbbf6bb[org.netbeans.api.annotations.common]]
    at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
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.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab$ProjectTreeView.<init>(ProjectTab.java:729)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:200)
    at org.netbeans.modules.project.ui.ProjectTab.<init>(ProjectTab.java:182)
    at org.netbeans.modules.project.ui.ProjectTab.getDefault(ProjectTab.java:332)
    at org.netbeans.modules.project.ui.ProjectTab.findDefault(ProjectTab.java:318)
    at org.netbeans.modules.project.ui.ProjectUtilities.makeProjectTabVisible(ProjectUtilities.java:347)
    at org.netbeans.modules.project.ui.actions.OpenProject$1$3.run(OpenProject.java:200)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    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)

任何人都可以为我翻译吗?

谢谢

答案 1 :(得分:0)

  

如果重新运行相同的文件,则会出现一个错误消息,即目标文件夹已存在并且不为空。

这是预期的。文件夹中填满代码后,您不应再使用该(现在为非空)文件夹进行克隆。

  

但导航或收藏夹中什么也没有显示。

您的Netbeans克隆操作应显示“ XXX项目已克隆。您要打开该项目吗?”。如果是这样,请选择Open Project
如果没有,或者说了什么(例如提示您“创建项目”),请自行取消并打开导入的项目(File -> Open Project)。