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


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

Re: Creating Archive Files in Eclipse with images.

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: Creating Archive Files in Eclipse with images.
Date 2011-05-20 12:18 -0400
Organization albasani.net
Message-ID <ir648l$8rh$1@news.albasani.net> (permalink)
References (4 earlier) <bcdea7dc-328c-41c7-aa15-bd14f9b53a96@18g2000prd.googlegroups.com> <ir5ii9$vt9$1@news.albasani.net> <791a4586-8051-4373-89c5-97cca40f31fb@18g2000prd.googlegroups.com> <ir5pe1$fnc$1@news.albasani.net> <ec72fd63-eafc-47d9-8a30-7fe0f1219c81@s41g2000prb.googlegroups.com>

Show all headers | View raw


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:
<http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.user/gettingStarted/qs-3.htm>

Note "Create separate folders for sources and class files" and "Configure 
default..."

<http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.user/tasks/tasks-32.htm>

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.

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