Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #4772
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | "John B. Matthews" <nospam@nospam.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Beginner Problem - Manifest file |
| Date | Mon, 30 May 2011 19:32:28 -0400 |
| Organization | The Wasteland |
| Lines | 43 |
| Message-ID | <nospam-218F94.19322830052011@news.aioe.org> (permalink) |
| References | <is103c$dnd$1@theodyn.ncf.ca> |
| NNTP-Posting-Host | LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4772 |
Show key headers only | View raw
In article <is103c$dnd$1@theodyn.ncf.ca>, William Colls <william.colls@rogers.com> wrote: > 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. Here's a simple utility that displays a manifest's contents in place: <http://sites.google.com/site/drjohnbmatthews/manifesto> The included build.xml file shows how to create the manifest using ant. From the command line, use `ant -p` to see the available build targets; use `ant test` to see a test run. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Beginner Problem - Manifest file William Colls <william.colls@rogers.com> - 2011-05-30 16:53 -0400
Re: Beginner Problem - Manifest file Knute Johnson <nospam@knutejohnson.com> - 2011-05-30 14:20 -0700
Re: Beginner Problem - Manifest file markspace <-@.> - 2011-05-30 15:30 -0700
Re: Beginner Problem - Manifest file William Colls <william.colls@rogers.com> - 2011-05-30 21:03 -0400
Re: Beginner Problem - Manifest file "John B. Matthews" <nospam@nospam.invalid> - 2011-05-30 19:32 -0400
Re: Beginner Problem - Manifest file Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-05-31 09:24 +0100
csiph-web