Two years ago I wrote a simple upload applet using Java, developed using NetBeans. When I first hit \"Clean and Build\" back then, and for some time afterwards, it worked perfec
Well, I'm not sure why it was giving me that trouble, but I found a solution. The solution was to simply delete and then re-create the entire project from scratch, and then try compiling again. I'm guessing that NetBeans has updated the way they do manifest files or something like that with the different versions, and it was choking on the older version.
Had the same problem with Netbeans 7.1 and a project started with Netbeans 7.0.1.
When building the project, the the jar file was lacking some files, in my case the Main class.
Recreating the project worked this out for me too. Thanks a lot!
Option 1: I tried to run the IDE with "Run as Administrator". It helped me to create the jar file properly
Option 2: a. After running "Clean and Build" Go to Netbeans Maven Project Navigator and right-click on the Execute Goal With Modifiers...
b. Remove "test-" from "org.apache.maven.plugins:maven-jar-plugin:2.3.2:test-jar" and selecting all the checkboxes as shown below (You may like to use the command later by selecting the "Remember as" checkbox)
I hope it will help someone