aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans clean and build Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans clean and build Error" Watch "Netbeans clean and build Error" New topic
Author

Netbeans clean and build Error

Jj Hill
Ranch Hand

Joined: Jul 25, 2011
Posts: 41

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

Joined: May 14, 2008
Posts: 5850
    
    7

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.


JBoss In Action
Jj Hill
Ranch Hand

Joined: Jul 25, 2011
Posts: 41

I've tried that. The IDE just creates a new file called "null<random number>", replacing the old one.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

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

Joined: Jul 25, 2011
Posts: 41

The "null..." file says:


Doesn't look like anything's wrong to me.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

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

Joined: Jul 25, 2011
Posts: 41

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

Joined: Jul 25, 2011
Posts: 41

I fixed the package thing...but it still says "existing manifest"...facepalm
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

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

Joined: Jul 25, 2011
Posts: 41

It says "Files with the extension .zip are not allowed as attachment in the message." Maybe you could give me an email?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Netbeans clean and build Error