Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Creating Archive Files in Eclipse with images. Date: Wed, 18 May 2011 06:58:38 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <97d85e5c-e75b-41d0-a967-02cdbf7b4913@q14g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 18 May 2011 13:58:45 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="HywFvwzxyTvAIJCzdmb/Mw"; logging-data="6405"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fNVk04lt8evierstR1f9TqfHJu2ileoo=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <97d85e5c-e75b-41d0-a967-02cdbf7b4913@q14g2000prh.googlegroups.com> Cancel-Lock: sha1:L1Ti9ObBi+312vEV8XvPGMIj1TA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4251 On 5/18/2011 5:16 AM, Sanny wrote: > My images are on the same directory as the classfile. Normally, you put extra files (like images) in the source (src) directory, not the class file directory. Those extra files will be added to your .jar file when the .jar is built. > > How to create a .jar file in eclipse? You can also do this manually, add or remove files yourself as you please. > Can I create .zip instead of .jar will that work with applets? If you're asking what I think you are, the answer is no. You can read a .zip file from an applet, but I don't think you want to do that. > I found Eclipse gives no option to add images to the .jar file. Can I > use winzip to create a zip/ jar file? Use the jar utility, that I linked to above.