Results 1 to 2 of 2
  1. #1
    Drew345 is offline Member
    Join Date
    May 2015
    Posts
    31
    Rep Power
    0

    Default Configuring Java Build Path in Eclipse

    I have a question about setting up one project to be able to use the methods in another project. I tried configuring the build path of the first project but that didn’t work. So I installed the package in the second project on the local machine and that worked. Details are below.

    My questions are:
    1. How to set up one project to use the methods of another project? I really with the "configure the build path" procedure had worked.

    2. What really happened when I did the second procedure to install the package on the local machine? Is that a bad practice? Can I undo it?

    Thank you! Details follow:

    I have two java projects: ardublock and openblocks.
    See step 2 in this page to see what it looks like:
    Setup ArduBlock Development in Eclipse | Ardublock

    The methods of ardublock use the methods inside openblocks. So I followed step number 3 on to :
    “Configure “Java Build Path” of ardublock to include openblocks”

    But that didn’t work. ardublock still could not see the methods of openblocks.

    Instead I followed this procedure on
    Import ardublock to Eclipse | Ardublock

    -- -- --quote
    1. install the openblocks package locally.
    go to openblocks folder and run
    $ mvn clean
    $ mvn install
    After these command, maven will compile and install openblocks package in your local machine.
    -- -- -- end quote

    And that worked. Now ardublock sees the methods in openblocks and compiles and runs. But I really wish I could get procedure 1 (configure the java build path) to work. I am afraid that what I did in procedure 2 (install package on local machine) might not be a good practice and maybe can’t be undone?

    Thanks,

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Configuring Java Build Path in Eclipse

    To use other projects in Eclipse, go to the configure build path window (wizard). There should be a projects tab.
    You should be able to add required projects there.

    Someone else will need to address your other questions (I don't speak Maven).

    Regards,
    Jim
    Last edited by jim829; 05-04-2016 at 02:45 AM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Replies: 2
    Last Post: 06-05-2014, 11:06 AM
  2. Replies: 2
    Last Post: 08-19-2013, 12:59 PM
  3. Java build path problem
    By azim in forum New To Java
    Replies: 1
    Last Post: 08-19-2013, 11:21 AM
  4. Replies: 2
    Last Post: 10-22-2012, 01:10 PM
  5. Replies: 6
    Last Post: 09-11-2009, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •