Auto exclude (-externs) option cannot be marked - eclipse

I have an swc file that I want to compile as external in a flex project.
I use eclipse FDT 5.
i read that I need do `Source -> Remove from Export' on that swc file and besides that under the 'FDT Compiler' properties section I need to mark 'Auto exclude (-externs)'. the problem is that when I mark it and press OK it doesn't get saved and when I get back to the properties page I see it as not marked.
any ideas how to resolve the issue ? is there another way to achieve this ?
i noticed that the file .settings/com.powerflasher.fdt.core.prefs contains compilation options.
is there a way to add this option manually to the prefs file ? for now I need to use a script to manually compile my project until this issue is resolved.
any information regarding the issue would be greatly appreciated.
thanks!

For each swc add the compile argument
-external-library-path+="path/to/library.swc"
If all the swcs are in the same folder then you can just add the path to that folder.
If you're using Windows I think you still need to use forward slashes.

Related

Eclipse target definition is empty

For some mysterious reason all the target definition files (*.target) in my plugin project became empty.
I have absolutely no clue how to fix this.
With the information provided in the question it is difficult to guess the reason.
However you can try these
Open target file in Text Editor and check the content.If the size of the file is more than zero then you can see some content here.
If using any SCM tool get the older version of these files.
You can replace the file content in local history. Right click on the file go to Replace with > Local History then choose the older one and click Replace.

Unable to add breakpoint in eclipse

I have same problem as mentioned in this question.
Unable to install breakpoint in sample.java due to missing line number attribute. Modify compiler options to generate line number attributes.
Reason:
Absent line number information
But the interesting part is my preference has already have the setting suggested as the answer. Could anyone please tell me if we have any other working solution for that.
I had the same issue and couldnt find a solution.
I eventualy selected "Restore Defaults" button and selected "apply" button and my problem was solved.
Are you trying to set a breakpoint in the source file? Or did you open the Class file and trying to set the breakpoint? If the source file is in a different project and if you have added the compiled jar of that project in another project, you might get this error.
Check if those settings are different for your project, by right-clicking it on Project Explorer and selecting Properties.

project classpath in eclipse

I have a question about adding folder/jars/libraries to a project in eclipse.
Let's say i download a folder off the internet which has libraries, do I add it as a folder, external jar or a class folder ?
Either way, I added it and it is now part of the libraries available, but I still get an error in my program saying the class is not available.
I then tried to modify $CLASSPATH to where the folders are sitting and I'm still getting errors.
What am I doing wrong ?
Simply try the following (if your project is a web-application):
Add your libraries (I presume jar files) to your WebContent/WEB-INF/lib folder. What you can do is simply copy the jar (i.e. Ctrl+C) and then past into this Eclipse folder. In this manner, the library will automatically be added to the build-path.
Alternatively, you can follow any of the three-steps outlined in this example:
http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java)
I would personally try Method-3 first (which is exactly what I mentioned in the comment provided below).
If this does not work, please try add more specifics to your question. For example, which library did you download (it might help to mention in case you’re missing something we don’t know about). Also, what exactly are the errors you are getting? If you cannot post an image, simply copy what the error is.
After adding all the JARs , try pressing Ctrl + Shift + O (as in Orange). This should re-organize the Imports and try to add any missing ones.
For example, go to excelToText.java and press Ctrl + Shift + O OR Click Source -> Organize Imports like so :
Then when you Save the file ( File -> Save) do you see the Errors disappear ?
See this video to take a look at how this works.

Configure mime-types in Subclipse?

To have browsable javadocs in a project hosted at Google-code, I got from here the recipe: set the correct mime-type property (text/html) when Subversion commits HTML pages.
Does anyone knows how to configure that in Subclipse?
This related question gives the pointer to do it in Subversive (there is a Preference tab for that). I couldn't find anything similar for Subclipse.
Someone comments about doing a Team->SetProperty for the whole javadocs dir (recursively), but that is not extension specific (I'd want text/css for stylesheets, for example); and further, I guess, if when new files are created I must remember to do it again...
Is there an alternative?
Update (2001-06-11): In case somebody is interested: I couldn't find a way to accomplish this, so I ended switching to Subversive.
To configure the MIME types information, edit the following file:
Windows 7/Vista: C:\Users[YOUR_USER]\AppData\Roaming\Subversion\config
In the config file, locate the property enable-auto-props and uncomment it. It should be set to yes. Make sure there is no space at the beginning of the line:
enable-auto-props = yes
The last section will be [auto-props] and by default everything will be commented out. Add your required file type with the appropriate config.
It's possible to do part of the work in the shell, by setting mime-type via script.

iPhone "_OBJC_CLASS_" compilation error

I am trying to compile my project in Xcode. But i am getting the following error.
"_OBJC_CLASS_$_InfrastructureBenchmarkingViewController", referenced from:
objc-class-ref-to-InfrastructureBenchmarkingViewController in RootViewController.o
4 more of similar type.
Can't understand the meaning of this error?
Small Clarification: Actually the _InfrastructureBenchmarkingViewController was a module in another project. The files pertaining to that I have copied into the new application.
Sometimes it happens when the project definition file (.xcodeproj/project.pbxproj) is somehow messed-up, eg. because of XCode crash or project is taken from someone else, etc.
So try removing InfrastructureBenchmarkingViewController (Delete the file, then choose "Delete reference", so it is not deleted physically from disc) and then again add this file to project (Add > Existing file from the project context menu).
It worked for me several times.
you need to link in whatever framework _InfrastructureBenchmarkingViewController is a part of. Try going to the project window, right click on frameworks and choose add existing framework ....
you should be able to find the framework including _InfrastructureBenchmarkingViewController there.
Seems you have some object files that are not valid anymore. Use the clean option from menu and build it again. That should solve it.