Build Path Mess

Discussion in 'Java' started by Sahil Dave, May 6, 2010.

  1. Sahil Dave

    Sahil Dave Guest

    Hi

    I have been away from java for quite a long time, and certainly away
    from Eclipse.
    I have two applications, one of which uses the other. The problem here
    is that i am trying to import classes from app2 into app1, but its not
    able to find them.

    How do i get around this? I know that it has to do something with the
    build path. I am using Eclipse.

    Thanks

    Sahil Dave
     
    Sahil Dave, May 6, 2010
    #1
    1. Advertising

  2. Sahil Dave

    Lew Guest

    On 05/06/2010 06:44 AM, Sahil Dave wrote:
    > Hi
    >
    > I have been away from java for quite a long time, and certainly away
    > from Eclipse.
    > I have two applications, one of which uses the other. The problem here
    > is that i am trying to import classes from app2 into app1, but its not
    > able to find them.
    >
    > How do i get around this? I know that it has to do something with the
    > build path. I am using Eclipse.


    Read about packages and classpaths in the tutorial on java.sun.com.

    --
    Lew
     
    Lew, May 6, 2010
    #2
    1. Advertising

  3. Sahil Dave

    Tom Anderson Guest

    On Thu, 6 May 2010, Sahil Dave wrote:

    > I have been away from java for quite a long time, and certainly away
    > from Eclipse. I have two applications, one of which uses the other. The
    > problem here is that i am trying to import classes from app2 into app1,
    > but its not able to find them.
    >
    > How do i get around this? I know that it has to do something with the
    > build path. I am using Eclipse.


    Right click on app2 > Build Path > Configure Build Path > Order and
    Export. The source folders defining those classes need ticks in their
    tickyboxes - that means they're exported to other projects.

    If they do have ticks, ask again and i'll see what i can think of.

    tom

    --
    File under 'directionless space novelty ultimately ruined by poor
    self-editing'
     
    Tom Anderson, May 6, 2010
    #3
  4. Sahil Dave

    Tom Anderson Guest

    On Thu, 6 May 2010, Lew wrote:

    > On 05/06/2010 06:44 AM, Sahil Dave wrote:
    >
    >> I have been away from java for quite a long time, and certainly away
    >> from Eclipse. I have two applications, one of which uses the other. The
    >> problem here is that i am trying to import classes from app2 into app1,
    >> but its not able to find them.
    >>
    >> How do i get around this? I know that it has to do something with the
    >> build path. I am using Eclipse.

    >
    > Read about packages and classpaths in the tutorial on java.sun.com.


    Did you see the bit where he says "I am using Eclipse"? It's on the last
    line of the second paragraph.

    tom

    --
    File under 'directionless space novelty ultimately ruined by poor
    self-editing'
     
    Tom Anderson, May 6, 2010
    #4
  5. Sahil Dave

    Lew Guest

    On May 6, 9:26 am, Tom Anderson <> wrote:
    > On Thu, 6 May 2010, Lew wrote:
    > > On 05/06/2010 06:44 AM, Sahil Dave wrote:

    >
    > >> I have been away from java for quite a long time, and certainly away
    > >> from Eclipse. I have two applications, one of which uses the other. The
    > >> problem here is that i am trying to import classes from app2 into app1,
    > >> but its not able to find them.

    >
    > >> How do i get around this? I know that it has to do something with the
    > >> build path. I am using Eclipse.

    >
    > > Read about packages and classpaths in the tutorial on java.sun.com.

    >
    > Did you see the bit where he says "I am using Eclipse"? It's on the last
    > line of the second paragraph.
    >


    Did you read the thread wherein people discuss that knowing the
    underlying concepts is essential to effective use of an IDE?

    I believe you even participated in that thread, as you may recall.

    --
    Lew
     
    Lew, May 6, 2010
    #5
  6. Sahil Dave

    Sahil Dave Guest

    On May 6, 6:25 pm, Tom Anderson <> wrote:
    > Right click on app2 > Build Path > Configure Build Path > Order and
    > Export. The source folders defining those classes need ticks in their
    > tickyboxes - that means they're exported to other projects.
    >
    > If they do have ticks, ask again and i'll see what i can think of.


    yeah, those are ticked!
     
    Sahil Dave, May 6, 2010
    #6
  7. Sahil Dave

    Sahil Dave Guest

    On May 6, 5:13 pm, Lew <> wrote:
    > Read about packages and classpaths in the tutorial on java.sun.com.


    I know about packages and classpaths. I am a bit rusty on the Eclipse
    way of managing those things.

    Thanks,
    Sahil
     
    Sahil Dave, May 6, 2010
    #7
  8. Sahil Dave

    Lew Guest

    Lew wrote:
    >> Read about packages and classpaths in the tutorial on java.sun.com.

    >


    Sahil Dave wrote:
    > I know about packages and classpaths. I am a bit rusty on the Eclipse
    > way of managing those things.
    >


    Many people find the Eclipse documentation useful for this type of
    question.
    <http://help.eclipse.org/galileo/topic/org.eclipse.jdt.doc.user/
    concepts/concept-build-classpath.htm>

    Perhaps you will, too.

    --
    Lew
     
    Lew, May 6, 2010
    #8
  9. Sahil Dave

    Tom Anderson Guest

    On Thu, 6 May 2010, Lew wrote:

    > On May 6, 9:26 am, Tom Anderson <> wrote:
    >> On Thu, 6 May 2010, Lew wrote:
    >>> On 05/06/2010 06:44 AM, Sahil Dave wrote:
    >>>
    >>>> I have been away from java for quite a long time, and certainly away
    >>>> from Eclipse. I have two applications, one of which uses the other. The
    >>>> problem here is that i am trying to import classes from app2 into app1,
    >>>> but its not able to find them.

    >>
    >>>> How do i get around this? I know that it has to do something with the
    >>>> build path. I am using Eclipse.

    >>
    >>> Read about packages and classpaths in the tutorial on java.sun.com.

    >>
    >> Did you see the bit where he says "I am using Eclipse"? It's on the last
    >> line of the second paragraph.

    >
    > Did you read the thread wherein people discuss that knowing the
    > underlying concepts is essential to effective use of an IDE?


    I don't see any evidence that he doesn't know the underlying concepts. He
    was quite specific in that the problem was configuring Eclipse. It doesn't
    matter if you know every last comma of the rules about classpaths if you
    don't know where the Configure Build Path dialogue box is.

    > I believe you even participated in that thread, as you may recall.


    I don't remember things, that's what google is for.

    tom

    --
    There was this one time we were talking about [...] that if you fill a
    bucket with water and spin it around, some of the force acting to hold
    the water back comes from the edge of the Universe. We were on tour in the
    Netherlands, and when we got to the venue, backstage someone said, 'let's
    try it out'. So we yelled, 'Oi, bring us a bucket and some rope!' They
    did and we made an awful mess. -- Billy Bragg, feat. Ernst Mach
     
    Tom Anderson, May 6, 2010
    #9
  10. Sahil Dave

    Tom Anderson Guest

    On Thu, 6 May 2010, Sahil Dave wrote:

    > On May 6, 6:25 pm, Tom Anderson <> wrote:
    >> Right click on app2 > Build Path > Configure Build Path > Order and
    >> Export. The source folders defining those classes need ticks in their
    >> tickyboxes - that means they're exported to other projects.
    >>
    >> If they do have ticks, ask again and i'll see what i can think of.

    >
    > yeah, those are ticked!


    Tick 'em harder!

    And app2 is definitely on the build path of app1?

    Would you care to post the .classpath files from both projects?

    Sometimes things do just get fucked up. The usual dead chickens to wave
    are, in ascending order of mana:

    1. Select all projects, refresh.
    2. Project > Clean ... > all projects
    3. Quit and restart Eclipse
    4. Quit and restart Eclipse with the -clean flag
    5. Close the projects, then reopen them (then clean)
    6. Delete the workspace, check out the projects from version control again
    7. Switch to IntelliJ

    I did a pass mucking out all our dev VMs today. One had a build error, i
    forget what but it was something nonspecific like 'project XYZ could not
    be built due to build errors', which was resistant to levels 1 to 3 of the
    above (i didn't try 4), but was cured by level 5. There was absolutely
    nothing actually wrong with the projects, Eclipse just had its knickers in
    a twist.

    tom

    --
    There was this one time we were talking about [...] that if you fill a
    bucket with water and spin it around, some of the force acting to hold
    the water back comes from the edge of the Universe. We were on tour in the
    Netherlands, and when we got to the venue, backstage someone said, 'let's
    try it out'. So we yelled, 'Oi, bring us a bucket and some rope!' They
    did and we made an awful mess. -- Billy Bragg, feat. Ernst Mach
     
    Tom Anderson, May 6, 2010
    #10
  11. Sahil Dave

    Lew Guest

    Tom Anderson wrote:
    >> Did you read the thread wherein people discuss that knowing the
    >> underlying concepts is essential to effective use of an IDE?


    Anyway, you're right, so I pointed to the Eclipse answer. Thanks for the
    correction.

    --
    Lew
     
    Lew, May 7, 2010
    #11
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?cmtibmFpcg==?=

    Authentication mess

    =?Utf-8?B?cmtibmFpcg==?=, Jan 20, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    327
    =?Utf-8?B?cmtibmFpcg==?=
    Jan 21, 2005
  2. C@rLoS

    TabIndex a mess!

    C@rLoS, Apr 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    364
    C@rLoS
    Apr 9, 2005
  3. =?Utf-8?B?Q3JhaWc=?=

    Big Mess, what should I do?

    =?Utf-8?B?Q3JhaWc=?=, Apr 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    403
    Tom wilson
    Apr 28, 2005
  4. M. Simioni
    Replies:
    2
    Views:
    656
    Kristofer Gafvert [MVP]
    Jul 7, 2005
  5. guesswho
    Replies:
    3
    Views:
    650
    John O
    Sep 6, 2006
Loading...

Share This Page