Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #4357

Re: Creating Archive Files in Eclipse with images.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!postnews.google.com!18g2000prd.googlegroups.com!not-for-mail
From Sanny <softtanks22@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Creating Archive Files in Eclipse with images.
Date Fri, 20 May 2011 05:20:14 -0700 (PDT)
Organization http://groups.google.com
Lines 65
Message-ID <791a4586-8051-4373-89c5-97cca40f31fb@18g2000prd.googlegroups.com> (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> <ir5ii9$vt9$1@news.albasani.net>
NNTP-Posting-Host 122.175.128.49
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1305894014 26663 127.0.0.1 (20 May 2011 12:20:14 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 20 May 2011 12:20:14 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info 18g2000prd.googlegroups.com; posting-host=122.175.128.49; posting-account=TwCTWQgAAAC7hf6GV7aTGIk6mVGkiZ5c
User-Agent G2/1.0
X-HTTP-UserAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM),gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4357

Show key headers only | View raw


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

I removed all unwanted files.

Still I am getting below errors.

JAR creation failed. See details for additional information.
  Problem writing /FightGame/META-INF/MANIFEST.MF to JAR: duplicate
entry: META-INF/MANIFEST.MF
  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
  Resource /FightGame does not exist.
  Resource /FightGame does not exist.
  Resource /FightGame does not exist.

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

"markspace" suggested me to create a src folder and put all images
into that folder.

I wanted some way to include all images and docs needed by the applet
into a single .jar file.


> > How to ask the Eclipse to add all files from "src" folder into the
> > jar [sic].
>
> Why?

So, that I get one .jar file instead of 20-30 images which takes
longer to download.


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

Should I put the images into "lib" folder? Or I create a build folder.
How can I suggest Eclipse to put all images into the .jar file?


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

No, This is a 2d fighting game When I use Run in eclipse it starts the
2d game. But when I click the .jar files the window opens for a few
sec but then closes automatically. Without showing any error.

Bye
Sanny

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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