Eclipse - Importing your own library

后端 未结 2 1682
死守一世寂寞
死守一世寂寞 2021-01-03 02:47

Okay, hopefully this is quick and easy.

I have two separate java projects, \'Library\' and \'Project\', and I have a class in \'Project\' that wants to implement a m

2条回答
  •  萌比男神i
    2021-01-03 02:57

    Just have "Project" reference your "Library", on windows the process is (using menu / tab names)

    • 1. Go to: Project -> Properties -> Java Build Path -> Projects
    • 2. Client Add...
    • 3. Select your "Library" project from the list
    • 4. Click Ok
    • 5. Click the other Ok

    Now your done and you can use import for classes in your "Library"

提交回复
热议问题