Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!news.nosignal.org!news.xcski.com!ncf.ca!not-for-mail From: William Colls Newsgroups: comp.lang.java.programmer Subject: Beginner Problem - Manifest file Date: Mon, 30 May 2011 16:53:08 -0400 Organization: National Capital Freenet, Ottawa, Ontario, Canada Lines: 33 Sender: ft787@cpe002369f5842a-cm0012c9db4d68.cpe.net.cable.rogers.com Message-ID: NNTP-Posting-Host: cpe002369f5842a-cm0012c9db4d68.cpe.net.cable.rogers.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: theodyn.ncf.ca 1306788780 14061 99.224.92.37 (30 May 2011 20:53:00 GMT) X-Complaints-To: complaints@ncf.ca NNTP-Posting-Date: 30 May 2011 20:53:00 GMT User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4767 Environment: Ubuntu 10.04.2 64 bit Java 1.6.0_24 NetbeansIDE 6.8 I have built a small application containing two classes. When I build the application in the IDE, it builds without error, and creates a .jar file. When I try to run the .jar using the command java -jar myapp.jar I get the error Failed to load Main-Class manifest attribute from myapp.jar One of the class files does contain the main declaration public static void main(String args) From my reading, I understand that there should be a file with the name manifest.txt in the build directory that gets incorporated into the .jar file, but I don't know what the contents of the file should be. My original understanding of how the IDE worked led me to believe that it would create the manifest file automatically, but this doesn't seem to be happening. Any guidance would be greatly appreciated. Thanks for your time.