Eclipse TFS - Source Control Explorer Error - eclipse

I am using Eclipse (version Juno) with the TFS Plugin. 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".
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:
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"
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.
Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to
instantiate class
"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. It worked perfect on Win 7 but on the virtual machine running Windows Server the error came up.
My first step to solve this was by following moerketh advice and moved that specific file from Win 7 to 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
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
Restarted Eclipse, and then the TFS folders showed.

Related

Problems creating a project with CodenameOne in Netbeans

Install Netbeans 12.6 on a Windows 10 machine. I was able to install the CodenameOne plugin with no problem. When creating a project I get the following error message:
Cannot invoke "org.openide.filesystems.FileObject.getFileObject(String)" because "folder" is null
I've been surfing the internet and can't find a way to fix it.
Thank you for your support.
This approach is no longer supported. The plugin is only used for legacy applications and no longer works in newer IDEs due to breaking changes in almost all IDEs.
Starting with Codename One 7.x we moved to maven projects which don't require the plugin and can be created in https://start.codenameone.com/
I have followed the instructions in the manual and it mentions as important:
"Before opening the project in NetBeans, you need to copy the contents of the tools/netbeans directory into the root project directory. These files are required by NetBeans to build, run, and debug the project correctly. "
But I can't find this folder in netbeans version 12.6.

Fix "The Eclipse Installer executable launcher was unable to locate its companion shared library."

I'm trying to install Eclipse Neon on a 64 bit Windows 7 computer. I download the file "eclipse-inst-win64.exe" and run as administrator. Immediately I get the following error:
The Eclipse Installer executable launcher was unable to locate its companion shared library.
Note the "Installer" keyword. When searching on Google and StackOverflow, I find solutions only for when receiving this error launching Eclipse itself after it is installed. The solutions that worked for people in those situations usually involve editing the "eclipse.ini" file and removing absolute paths or references to uninstalled plugins. However, Eclipse has never been installed on this computer, therefore an "eclipse.ini" file does not exist and the installer does not appear to create one in any obvious place before throwing this error. There does not appear to be any "companion shared library" downloads on the Eclipse website. Any ideas on what could be going on?
Download and install the JDK and then try to install Eclipse again.
According to http://wiki.eclipse.org/Eclipse/Installation:
Eclipse 4.6 (Neon) was released on June 22, 2016. See Neon schedule.
Consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 8 JRE/JDK is required to run all Neon packages based on
Eclipse 4.6, including the Installer. The reasoning behind
requiring Java 8 are discussed here.
I found another reason for this error message. I got it when I tried to install Eclipse from the compressed installer. I extracted the installer into a folder and ran it from there. It then installed.
Try to extracted all the installer files before you run the installer.

com.google.appengine.tools.enhancer.Enhance not found in Google App Engine project

I installed the Google Plugin for Eclipse and created a new Google App Engine project just as decribed in https://developers.google.com/appengine/docs/java/tools/eclipse. When building the project I'm getting the error
Error: Could not find or load main class com.google.appengine.tools.enhancer.Enhance
I have searched similar questions on stackoverflow and the only suggestions were to use JDK 7 and uninstall any existing JDK 6 even if not pointed in Eclipse Installed Jres. I have done both, and I'm still I'm facing the same error. This is on Windows 7 x64 machine and the Eclipse and JDK are 32 bit ones. I also tried on another computer which is a Windows server 2008 x64 machine and again the Eclipse and JDK 32 bit. I face the same error there also.
Please help before I shoot myself.
If you are not using JDO/JPA, uncheck the box for this option in the App Engine tab for your project.
If you do use them, make sure that the relevant files are present in the WEB-INF/lib/ folder: https://developers.google.com/appengine/docs/java/datastore/jdo/overview?csw=1

TFS plugin for EclipseCDT error with paths

I am using Eclipse CDT (4.2 Juno) on both Windows 7 and Ubuntu 14.02. I have sucessfully installed Eclipse Plugin for TFS. And it works well on Windows 7 machine. I created repository on codeplex. Now I installed TFS plugin on Ubuntu Eclipse CDT. Everything went OK. But when I tried to import projects from repository, problem arise.
What I see as a problem is that TFS plugin on Ubuntu Eclipse CDT pick up mapping (local directory) from Windows 7 machine, and then it tries to place (import) files under that directory. Path which it tries to create (and what is causing java null pointer exception) looks like this:
Importing $/cplusplus/ArrayDemo (this is server path and this is OK) to /home/nenad/C:/Nenad/workspaceplus/cplusplus/ArrayDemo (this is local path and this is totally wrong)
That is completely malformed path. I need to import that (and all of the others) projects under /home/nenad/workspace/cpp4d5ed on my linux machine.
How can I resolve this issue?
Try deleting the Workspace and make new mapping.

Eclipse Juno Tomcat 6 Remote Host Not Supported

I am trying to add a tomcat 6 server in my eclipse juno but I am getting this error:
The currently selected server type does not support remote hosts
Before juno I had galileo on the same machine and I was able to add tomcat 6 successfully in it without any problems.
I searched on the internet before asking but the only relevant link i got was this:
Eclipse Tomcat7 Server Doesnt support Remote Host
and it doesn't help much.
Pls help
Thanks
I had the same problem with Tomcat 7 and I solved it by importing a Tomcat 7 project from another workspace which already had the server set up. Additionally I added a Runtime Environment for Apache Tomcat 7 (Window > Preferences > Server > Runtime Environments > Add)
I recently had the same problem and it was because I had a previous version of tomcat installed, upgraded to a newer version, deleted to old one, and never changed the runtime environment in Eclipse. It's kind of a poor error message because it doesn't state the true nature of the problem but anyway... The easiest way to fix this is:
Open Eclipse, right click on the workspace and select New Server.
Once you are at the Define New Server wizard click on Apache and select Tomcat 6. This is where you should see the error The currently selected server type does not support remote hosts. Now below server runtime environment click Configure Runtime Environments and new popup will open. You should see Apache Tomcat v6.0 in the preferences window. Select this and click edit to the right.
You will have a new popup titled Edit Server Runtime Environment. Under Tomcat Installation Directory you can browse to the location of the tomcat directory. Assuming you have downloaded Tomcat and put it at the top level of your C: drive you should have something like this: C:\apache-tomcat-6.0.36. Click finish and you should be good to go. Let us know how it works out for you!
I also had the same problem and tried to follow #dbk's solution but I didn't have the "Configure Runtime Environments" in the wizard screen. For me I needed to go to preferences->server->run time environments where I had incorrectly configured runtime environments. So to be clear if you have runtime environments that are not configured correctly you will have to edit them first.