Failing to add a builder to my eclipse project - eclipse

I am trying to add a new builder to an eclipse project and I am having a problem.
The new builder is an external program.
This is what I have done:
I have created a new program configuration in the external tools.
After creating it I have tested it by making it run - it worked OK.
Than, I have opened the project properties and under "Builders" section I have selected "import".
I have selected my program configuration from the list.
The error was: "Specified container for launch configuration does not exist."
Does anybody knows what this error mean?

That kind of error has been seen for instance with m2eclipse, and then described in the bug 247940
It seems a custom builder could not be defined on an imported project (as opposed to a project directly created in the eclipse workspace).
So if your .project and .classpath are defined in an external directory (external to the eclipse workspace), that may be the cause... and this is not yet addressed by eclipse3.5.

Related

Errors running builder 'CDT Builder' on project 'proj1' (eclipse CDT)

I have a question about how to import an project that contains an existing make file into eclipse.
From reading the eclipse documentation it seems that i should use a "Makefile Project"
Is this correct?
If so then the import of the project files seems ok, but when I run build I get:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'proj1'.
Internal error building project proj1 configuration Default
java.lang.NullPointerException
Internal error building project proj1 configuration Default
java.lang.NullPointerException
ok. So I i assume that i am getting this because the build target points to nothing. So i got to Project-> Properties -> C/C++ Build and all the "builder settings" are grayed out.
My next attempt was to go to Project -> Make Target -> Create. What i see here is:
Target name:
Make Target:
Use Builder settings:
I made several attempts at putting values into these fields and running make again, but I get the same error.
When using eclipse CDT in the past i have always created the project myself so eclipse handled the whole make thing for me. But I am at a loss of how i actually tell CDT what make file to use or why I am receiving the above error message.
So i gues my question is if i want to import a C project with an existing file how do i tell eclipse what make file to use? In the flow i chose these options seemed grayed out.
I tried looking this up on stack exchange, but have not found an exact match for my situation
Thanks in advance.
It looks like something went wrong with your import. You should have imported your code via Existing Code as Makefile Project. The build command can be defined in the project-properties dialog, under C/C++ Build, Behaviour tab, in case you have a specific situation.

Eclipse error syntax checking

How to turn ON automatic error checking inside Java code within the Eclipse IDE? I have already checked the "Build Automatically", but it still does not check my error when I purposely throw away my semicolons. Need help.
Do you configure your folder to be the source folder?It should be included in the java build path (The project properties--> java build path --> source ) ? Eclipse will only checks the java syntax error automatically for the folders that are included in the java build path.
You shouldn't need to turn on anything, it should work out-of-the-box. The only case I can think of when it might not work are when editing java files outside any project. Are you sure that the java files you're editing are located in a source folder of an open project?

How to copy an eclipse dynamic web project?

I have a workspace with a dynamic web project in it. When I try to copy and paste the project into the same workspace, eclipse asks for the name of the new project, then it copies the files.
The problem I have is that when I deploy this project to the server it gets deployed with the original name and not the new name.
It looks like eclipse is not updating all the old name references when it makes the copy.
How do I make a good clean copy of an existing project?
After some more searching I found this in the eclipse bug site.
Steps To Reproduce:
create a Dynamic Web Project and call it "Project1"
copy and paste this project, in order to create another one which is a clone
of the first; in the "Paste" dialog, specifiy "Project2" as the name of the
target project (instead of "Copy of Project1")
OBSERVED BEHAVIOUR:
The context root of the target project is the same as the source project. This
could be a problem, but it can be easily updated in the project settings and/or
in the server editor (module tab).
However, even the module name is the same, while it's usually equal to the
project name. So, in Project2/.settings/org.eclipse.wst.common.component I find
the following:
This causes problems when deploying modules to the server. Moreover, the module
name can't be easily changed through the GUI from anywhere.
EXPECTED BEHAVIOUR:
The copy&paste operation should update the web module name to "Project2", just
like it happens when you rename a project.
WORKAROUND:
Make sure the module corresponding to the target project has not been added to
the server. Then, manually edit
Project2/.settings/org.eclipse.wst.common.component and change the deploy-name
attribute value of the wb-module element. Close and restart Eclipse (!!!) and
the new name will be taken. If you don't restart Eclipse, even if you edit
org.eclipse.wst.common.component from within Eclipse, WTP does not take the
change (it seems it's caching it somewhere in memory...).

Red exclamation mark in Eclipse with mercurial

I have imported a project with Mercurial (hg clone ...).
When opening it with Eclipse, a red exclamation mark appears by the project's name in the Project Explorer, and it cannot be built. Silly messages like "import java.util cannot be resolved" appear, and errors in files are not marked in the Package Explorer.
How can I resolve this?
Check the problem view. By exclamation it is usually means a problem with build path
Check the Build Path of the project by right clicking the project and select Build Path -> Configure Build Path.
One problem I often encountered is different people using different Java SDK and so when the exact SDK is not available in your machine, you need to change to your Java SDK (via JRE System Library -> Alternate JRE). A better way to avoid this problem is to always select the JRE System Library from Workspace default JRE or Execution Environment.
I solved the problem by adding the external .jar file in to my project.
RightClick on the project -> Properties -> Java Build path -> libraries tab -> Add jar
Select your jar file and added it
Thats it the red ! mark gone.
Some times it happens that you have added a jar file earlier but currently not using it. Then after some time you delete the jar file from your system. But since you are not using the library file, so you will not get any error.But then you will see the red exclamation mark for the project. So all you need is to remove the added jar from the Build Path.
Done.....
The Java Runtime Library was defined wrong for the pulled project.
It had to be reset under Project | Properties | Java Build Path | Libraries.
It means there is a problem with the build path in your project. If it is an android project then it mostly means the target value specified in project.properties file cannot be found. This can also be caused because of other kinds of built problems. But it is shown mostly for built problems only. See here for more details. It is about built error decorater seen in eclipse.
An extract from that page:
Build path problems are sometimes easy to miss among other problems in a project. The Package Explorer and Project Explorer views now show a new decorator on Java projects and working sets that contain build path errors:
The concrete errors can be seen in the Problems view, and if you open the view menu and select Group By > Java Problem Type, they all show up in the Build Path category:
I figured out each time i am trying to import a library into my android project, i have a red exclamation mark with both ActionBarSherlock and Facebook libraries
This is how i solved it:
After adding the library into your project "project properties->Android->Librairy->add"
If you are using Eclipse, all you have to do is to clean your project and build all your workspace:
"project -> clean... -> "clean selected project" -> build the entire workspace
For me, the problem was a simple one - the reference project was compiled in 1.5 and my project 1.6. Matching the two solved the issue.
Right-hand-click on the project, select properties, select java compiler.
This is how I solved this problem:- Right-Click to project->properties->Java Build Path->Libraries(tab)->Remove the Jar which is already present there with a Path given along.

ColdFusion Builder throwing an error about my open project

I am trying to open Adobe ColdFusion Builder, and it is throwing the following error:
"open project has encountered a problem"
Problems occurred opening the selected resources.
The project description file (.project) for 'dev - work' is missing.
This file contains important information about the project.
The project will not function properly until this file is restored.
How do I solve this issue?
What about ovbious steps? It looks like you accidentally deleted the Eclipse project configuration file.
Check if ''.project'' file exists in project directory. If it is missing, re-creating the project and copying the source files from the old is the way to fix it.
Also you can try to create project with same name and copy the ''.project'' file to the old one. Bu you'll need to remove this invalid project first (without deleting the source files) and import it later, because Eclipse (FBuilder) wont allow you to have two projects with same name in workspace.
if you are using developing on windows 7 platform, go to you workspace folder(not where you project is located) right click go to restore select an earlier version. it worked for me