Why is Netcheans compiling an error, why does it mean?

I finished the Netbeans project a few months ago, it was successfully completed, completed. But it’s strange that today I look into it and recompile it, did not change anything, but received the following error, I vaguely remember that I had encountered similar situations before, just recompiled, and everything will be fine, but not this time, I recompiled several times, the same error, restarted the PC and recompiled again, the same error:

build-impl.xml:501: copylibs doesn't support the "indexMetaInf" attribute 

I never touched this file and I have no idea why it worked fine, but this time I failed, what happened and what to fix?

+4
source share
4 answers

The problem seems to be in the Ant version and the new Ant attribute indexMetaInf .

I have the same problem and think it’s worth explaining how I got it.

How to get the problem:

I am using NetBeans 6.8.

I recently installed NetBeans 7.0. Just for new features.

I agreed to use the old NB6.8 configuration when NB7.0 asked me when I first started.

It was a mistake!

So. I started NB7.0 and my good old NB6.8 projects were on the list of projects.

The problem is that NB7.0 not only imported my old projects into the list of its projects; but also changed the build-impl.xml these projects .

And when I opened my projects in NB6.8 and tried to compile them, an error occurred with "indexMetaInf".

The essence of the problem:

NB6.8 uses Ant 1.7.1 by default. And it seems that the attribute "indexMetaInf" is only supported by the latest versions of Ant ( possibly starting from 1.8.x ). This new version of Ant was installed with NB7.0 and is used only by NB7.0 . NB6.8 does not see it.

How to fix the problem:

I updated the build-impl.xml from the disruptive program and build-impl.xml problem. In my previous version of build-impl.xml there was no indexMetaInf .

+6
source

Had the same problem, fixed it by copying the org-netbeans-modules-java-j2seproject-copylibstask.jar from [netbeans]\java\ant\extra to the myProject\lib\CopyLibs

+1
source

A strange thing happened again, this time a good one. I had a backup DVD, from a few weeks ago I copied the project back, now it compiles again, it seems that the project is somehow damaged, I defragmented it to C: last week, could it somehow move some files around and a little messed up? In any case, now is not a problem.

0
source

What platform are you using? I had some odd errors on Unix due to trying to compile the project from the command line and have an older version of ant in my path.

0
source

Source: https://habr.com/ru/post/1334730/


All Articles