Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans clean and build Error

 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I attempt to clean and build my Netbeans project, it says C:\Users\Jimmt\Documents\NetBeansProjects\Game\nbproject\build-impl.xml:685: Existing manifest C:\Users\chsieh\Documents\NetBeansProjects\Wallnut Defense\build\null443973729 is invalid
In "build-impl.xml:685" the line of code that has the error is:


I have images in a src file inside the project file and my project relies on another Netbeans project. I also need to know how to embed images into a .jar file, but I'll ask that separately. I'm not sure whether this belongs in the Java in General forums or not but please reply. Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the correct forum (both for this error and the possible question about embedding images, which you should do in a new post) because the problem does seem to be NetBeans centric.

Have you looked at the C:\Users\chsieh\Documents\NetBeansProjects\Wallnut Defense\build\null443973729 file? That should be the file referenced by ${tmp.manifest.file} in line 685 of the build script. Perhaps that file was left over from a prior failed build and deleting it might fix the issue.

Sorry for not having a definitive answer, but I rarely use NetBeans. Perhaps a NetBeans user will chime in with additional help.
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried that. The IDE just creates a new file called "null<random number>", replacing the old one.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try looking inside the "nullxxxx" file and see if the contents ring any bells as to what might have gone wrong. For example, you might have used a character in naming something that causes the manifest to be ill-formatted.
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "null..." file says:


Doesn't look like anything's wrong to me.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the issue is that the Game class doesn't have a package name. Try adding a package statement to the source file (and, of course, let NetBeans move the source file to the correct folder). Then try again.
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added a package, but now another class under the same Game project says "cannot find symbol" in the source code(syntax err)
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed the package thing...but it still says "existing manifest"...facepalm
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, I'm out of ideas. Could you zip up the project and attach it to the thread? (Run a clean first to remove the compiled pieces.) Perhaps I'll notice something when I try it.
 
Jj Hill
Ranch Hand
Posts: 41
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It says "Files with the extension .zip are not allowed as attachment in the message." Maybe you could give me an email?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic