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
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.
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.
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.
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.