Reputation: 209
I was developing a project on netbeans 6.8 and everything was fine, but a week ago, I installed netbeans 7.0 just for a try.
When i opened nb 7.0 my project was listed in 7.0 as well.
Now today, I am trying to compile my project on netbeans 6.8 and it gives me this error.
nbproject\build-impl.xml:517: copylibs doesn't support the "indexMetaInf" attribute
I guess netbeans 7.0 changed the file. How can i fix this problem?
Upvotes: 8
Views: 71136
Reputation: 1
I have met similar situation before.
This my solution.
1. Right Mouse click On Project
2. Click On Properties
3. Click On Libraries
4. Click ON Add Project
5. Chose your Project Earth Icon
6. Add Project JAR Files
Upvotes: 0
Reputation: 1621
1. Right Mouse click On Libraries
2. Click On Properties
3. Checked Red Color Jar File List
4. Click ON Remove button
5. Exit NetBeans IDE
6. Restart NetBeans
Screenshot
Upvotes: 5
Reputation:
If you got a problem with your build xml file you can clean and build the project. And also you can resolve issues. To do that first right click on the project. There should be item in the menu for resolve issues. From that you can resolve your issues. I used this solution for resolving path errors to my libs.
Upvotes: 1
Reputation: 2409
In my case the problem was the corrupted project.properties (which is used for project configuration data or settings) file. When I corrected this file, it worked.
Upvotes: 1
Reputation: 11
I found a solution. You have to create a new project with existing source and copy your source-files and import your libraries again in the new project. Finally clean and build the project. If you have projects as libraries you have to do the same with these projects and import them again.
Upvotes: 1
Reputation: 329
An "easier" way to fix this problem is to set your project view to File - then go to the file build-impl.xml right click it and select clean.
Then shut down the compiler - restart it and clean and build the application.
It sorted the problem out on my compiler.
Upvotes: 6
Reputation: 209
i found the solution myself,and wanted to share, create a new project with netbeans 6.8 and copy its build-impl.xml and replaced my project's build-impl.xml file.
it worked.
Upvotes: 12