• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans clean and build Error

 
Ranch Hand
Posts: 41
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The "null..." file says:


Doesn't look like anything's wrong to me.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I fixed the package thing...but it still says "existing manifest"...facepalm
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic