Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Creating Archive Files in Eclipse with images. Date: Fri, 20 May 2011 12:18:33 -0400 Organization: albasani.net Lines: 78 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net FiQLv9cChk2TzYJ4TPl2+k1qo61/g1hwkHIQBekbadrCGaE0xUnSqVQx9tqiIZzM9FmoLaErNJImbIRZxPnFzTwZw/MQNftUgXJ4poehIboUR7azi50DyZFZu5Mw+DFQ NNTP-Posting-Date: Fri, 20 May 2011 16:18:29 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="8H1p46Xr9WqonUMM8f33vr7PePsw8yP0nUWjzdBlE6bIIdtGW3GT/2ejeePmuKbyje4hcPdBdnlFpygBAE7NXDr5ccLxf1c+EdsCfSWkJDAKe6SWOF3wXu/lNdSxsm+h"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:Nh2Oi2N5pjVy563yta9cnZ5y4M4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4361 ATTRIBUTE YOUR CITATIONS, SANNY! ATTRIBUTE YOUR CITATIONS, SANNY! ATTRIBUTE YOUR CITATIONS, SANNY! ATTRIBUTE YOUR CITATIONS, SANNY! ATTRIBUTE YOUR CITATIONS, SANNY! ATTRIBUTE YOUR CITATIONS, SANNY! Jesus H. Tapdancing CHRIST, Sanny! Sanny wrote: No, you did not. Lew wrote: >> One does not normally include source in a JAR, or at least not in the >> deployment JAR. Why do you wish to do so? THIS is what Sanny wrote: > 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. You want HelloWorld.class in the JAR, not the source. and THIS is what Sanny wrote: >>> I wanted some way to include all images and docs needed by the applet >>> into a single .jar file. and THIS Lew wrote: >> It's not by including the "src" directory, it's by copying resources into the >> build directory, which Eclipse does automatically. When resources are in the >> designated source folders, Eclipse builds them into the JAR. Sanny [etc.]: > What is the Build directory? In my workspace I cant find any "Build" > folder, Do I need to create it? It is part of the project, not the workspace, and you set it up when you set up the project. I believe the default is "bin/" relative to your project, but you get to rename it. Have you read the instructions for Eclipse? It doesn't sound like you have. Start with: Note "Create separate folders for sources and class files" and "Configure default..." RTFM. >> Questions should be phrased as interrogatives. >> >> AFAIK it's enough to put the resource in the "src" folder tree, and Eclipse >> copies it. I would have to check the Eclipse documentation for the details. > I added to "src" folder too But It is not Copying to the .jar. And the Eclipse documentation says what about this? Did you read the links I posted before? Did you? Why did you clip all those links from your response? Did you read them? These links will help you not at all if you don't read them. You have to read them. Read them and study them. Learn from them when you read them. It's the reading of them that will help you. You should probably read them. Who knows, reading the documentation might answer your questions! RTFM. Please note that you could just as easily searched the help files as have me do it for you. I found all this information in the few minutes since reading your posts, in order to help you. You couldn't do that? RTFM. -- Lew RTFM.