简体   繁体   English

Eclipse TFS-源代码管理资源管理器错误

[英]Eclipse TFS - Source Control Explorer Error

I am using Eclipse (version Juno) with the TFS Plugin. 我在TFS插件中使用Eclipse(Juno版本)。 When I click Source Code Explorer I get this error message: 当我单击“源代码资源管理器”时,出现以下错误消息:

Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to instantiate class "com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor". 插件“ com.microsoft.tfs.client.common.ui.vcexplorer”无法实例化类“ com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor”。

在此处输入图片说明

I saw this Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError: but am not sure if it is the fix for this TFS plugin or what it really means: 我看到了这个Eclipse插件开发由于java.lang.NoClassDefFoundError而无法实例化类:但是不确定它是否是此TFS插件的修复程序或它的真正含义:

put the project of the missing file as dependency in the plugin configuration file too. 将缺少文件的项目也作为依赖项放在插件配置文件中。

I've seen this exact error before on my box. 我已经在包装盒上看到了这个确切的错误。 In my case this file had gone missing due to its long path and filename: 在我的情况下,该文件由于路径和文件名太长而丢失:

"...plugins\\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\\com\\microsoft\\tfs\\client\\common\\ui\\vcexplorer\\versioncontrol\\ VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class" “ ... plugins \\ com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439 \\ com \\ microsoft \\ tfs \\ client \\ common \\ ui \\ vcexplorer \\ versioncontrol \\ VersionControlEditor $ VersionControlEditorRepositoryUpdatedListener.class”

You can see how this can get somewhat long. 您会看到它如何变长。 I'd suggest checking if you have all the files perhaps comparing it with an installation on a shorter path. 我建议检查您是否拥有所有文件,也许将它与安装在较短路径上的文件进行比较。 Hope this helps. 希望这可以帮助。

I hope this can help somebody that researches this error. 我希望这可以对研究此错误的人有所帮助。 I was able to fix the problem on a virtual machine (Windows Server 2012 R2) running on a Windows 7 desktop with Eclipse Mars 4.5.0 and TFS plugin 14.0.1. 我能够使用Eclipse Mars 4.5.0和TFS插件14.0.1在Windows 7桌面上运行的虚拟机(Windows Server 2012 R2)上解决此问题。

Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to instantiate class "com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor". 插件“ com.microsoft.tfs.client.common.ui.vcexplorer”无法实例化类“ com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor”。

I installed Eclipse and the TFS plug-in on both the desktop Win 7 and the virtual machine. 我在台式机Win 7和虚拟机上都安装了Eclipse和TFS插件。 It worked perfect on Win 7 but on the virtual machine running Windows Server the error came up. 它在Win 7上运行完美,但是在运行Windows Server的虚拟机上出现了错误。

My first step to solve this was by following moerketh advice and moved that specific file from Win 7 to Server 2012. 解决此问题的第一步是遵循moerketh的建议,并将该特定文件从Win 7移至Server 2012。

...plugins\\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\\com\\microsoft\\tfs\\client\\common\\ui\\vcexplorer\\versioncontrol\\ VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class ... plugins \\ com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439 \\ com \\ microsoft \\ tfs \\ client \\ common \\ ui \\ vcexplorer \\ versioncontrol \\ VersionControlEditor $ VersionControlEditorRepositoryUpdatedListener.class

It did remove the error but did not show the folders in the server. 它确实消除了错误,但未显示服务器中的文件夹。 In other words, I couldn't see the folders I am trying to map to. 换句话说,我看不到要映射的文件夹。

Next, I decided to copy all files in the folder as shown below and paste it to the same folder in the virtual machine. 接下来,我决定如下所示复制文件夹中的所有文件,并将其粘贴到虚拟机中的同一文件夹中。

...plugins\\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\\com\\microsoft\\tfs\\client\\common\\ui\\vcexplorer\\versioncontrol\\ VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class ... plugins \\ com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439 \\ com \\ microsoft \\ tfs \\ client \\ common \\ ui \\ vcexplorer \\ versioncontrol \\ VersionControlEditor $ VersionControlEditorRepositoryUpdatedListener.class

Restarted Eclipse, and then the TFS folders showed. 重新启动Eclipse,然后显示TFS文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM