Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!s41g2000prb.googlegroups.com!not-for-mail From: Sanny Newsgroups: comp.lang.java.programmer Subject: Re: Creating Archive Files in Eclipse with images. Date: Fri, 20 May 2011 07:17:25 -0700 (PDT) Organization: http://groups.google.com Lines: 79 Message-ID: References: <97d85e5c-e75b-41d0-a967-02cdbf7b4913@q14g2000prh.googlegroups.com> <66251df5-1f5e-4cf7-9c86-3dac2a82b311@z13g2000prk.googlegroups.com> <791a4586-8051-4373-89c5-97cca40f31fb@18g2000prd.googlegroups.com> NNTP-Posting-Host: 122.168.18.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1305901045 24968 127.0.0.1 (20 May 2011 14:17:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 May 2011 14:17:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s41g2000prb.googlegroups.com; posting-host=122.168.18.254; 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:4360 > > I removed all unwanted files. > > No, you didn't. =A0Apparently you are trying to include some unwanted fil= es more > than once. I am using Export-> Java -> JAR File Then I get a Window: On One Side: FightGame This is my package name On Other Side [.] .ClassPath [.] .project I uncheck above two files as you suggested. When I Click [.] FightGame I get a few more classes under it 1. (default package) 2. library classes 3. Meta-Inf I removed the Meta-Inf files this time. When I click (default package)On right window I get [.] HelloWorld.java I tried removing HelloWorld.java But then It do not allow me to choose the Main Class: HelloWorld. And It do not allow me to create a Jar when I disable: HelloWorld.java Now when I Create Jar I get below errors. JAR export finished with warnings. See details for additional information. 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 > One does not normally include source in a JAR, or at least not in the > deployment JAR. =A0Why do you wish to do so? I dont want to put HelloWorld.java But It do not allow me to choose "Main Class" when I disable HelloWorld.java from the list. > > I wanted some way to include all images and docs needed by the applet > > into a single .jar file. > > It's not by including the "src" directory, it's by copying resources into= the > build directory, which Eclipse does automatically. =A0When resrources are= in the > designated source folders, Eclipse builds them into the JAR. What is the Build directory? In my workspace I cant find any "Build" folder, Do I need to create it? > Questions should be phrased as interrogatives. > > AFAIK it's enough to put the resource in the "src" folder tree, and Eclip= se > copies it. =A0I would have to check the Eclipse documentation for the det= ails. I added to "src" folder too But It is not Copying to the .jar. Bye Sanny