Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #4354
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Creating Archive Files in Eclipse with images. |
| Date | 2011-05-20 07:16 -0400 |
| Organization | albasani.net |
| Message-ID | <ir5ii9$vt9$1@news.albasani.net> (permalink) |
| References | <97d85e5c-e75b-41d0-a967-02cdbf7b4913@q14g2000prh.googlegroups.com> <ir0jak$685$1@dont-email.me> <66251df5-1f5e-4cf7-9c86-3dac2a82b311@z13g2000prk.googlegroups.com> <ir3kkp$obm$1@dont-email.me> <bcdea7dc-328c-41c7-aa15-bd14f9b53a96@18g2000prd.googlegroups.com> |
On 05/20/2011 05:20 AM, Sanny wrote: >> I don't know about this one. Check your paths again to make sure they >> are all correct. You might have to use a sniffer like Wireshark to >> verify that the Java plug-in is looking where you think it is looking. > > When creating a Jar file I get below errors. I am able to play the > applet as an Application with Eclipse as it has got main() function. > But When I click the FightGame.jar It closes immidietly. > > JAR creation failed. See details for additional information. > Problem writing /FightGame/META-INF/MANIFEST.MF to JAR: duplicate > entry: META-INF/MANIFEST.MF > Resource /FightGame does not exist. > Resource /FightGame does not exist > Resource /FightGame does not exist. > Problem writing /FightGame/.classpath to JAR: duplicate > entry: .classpath Don't include .classpath in the JAR. It's a development artifact and has no place in the deployment. > Problem writing /FightGame/.project to JAR: duplicate > entry: .project Don't include .project in the JAR. It's a development artifact and has no place in the deployment. > Problem writing /FightGame/HelloWorld.java to JAR: duplicate entry: > HelloWorld.java > Problem writing /FightGame/META-INF/MANIFEST.MF to JAR: duplicate > entry: META-INF/MANIFEST.MF > Problem writing /FightGame/fightgame.jardesc to JAR: duplicate > entry: fightgame.jardesc Don't include fightgame.jardesc in the JAR. It's a development artifact and has no place in the deployment. > Resource /FightGame does not exist. > Resource /FightGame does not exist. > Resource /FightGame does not exist. > > Despite the errors the FightGame.jar is created. > > I have kept all my images in "src" folder. I find the jar do not add > the content of "src" folder. You usually don't include source in the deployment artifacts. > How to ask the Eclipse to add all files from "src" folder into the > jar [sic]. Why? > It gives me no option to include a folder "src" That's because it isn't part of the deployment. Instead, it copies resources FROM "src" to the build directory. > When I double click the Jar [sic] a window opens for a few sec and closes > without showing any error. That's what the program does, apparently. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Creating Archive Files in Eclipse with images. Sanny <softtanks22@hotmail.com> - 2011-05-18 05:16 -0700
Re: Creating Archive Files in Eclipse with images. markspace <-@.> - 2011-05-18 06:58 -0700
Re: Creating Archive Files in Eclipse with images. Sanny <softtanks22@hotmail.com> - 2011-05-19 10:20 -0700
Re: Creating Archive Files in Eclipse with images. markspace <-@.> - 2011-05-19 10:39 -0700
Re: Creating Archive Files in Eclipse with images. Sanny <softtanks22@hotmail.com> - 2011-05-20 02:20 -0700
Re: Creating Archive Files in Eclipse with images. Lew <noone@lewscanon.com> - 2011-05-20 07:16 -0400
Re: Creating Archive Files in Eclipse with images. Sanny <softtanks22@hotmail.com> - 2011-05-20 05:20 -0700
Re: Creating Archive Files in Eclipse with images. Lew <noone@lewscanon.com> - 2011-05-20 09:13 -0400
Re: Creating Archive Files in Eclipse with images. Sanny <softtanks22@hotmail.com> - 2011-05-20 07:17 -0700
Re: Creating Archive Files in Eclipse with images. Lew <noone@lewscanon.com> - 2011-05-20 12:18 -0400
Re: Creating Archive Files in Eclipse with images. Jeff Higgins <jeff@invalid.invalid> - 2011-05-19 14:03 -0400
Re: Creating Archive Files in Eclipse with images. markspace <-@.> - 2011-05-19 11:10 -0700
csiph-web