How can I add build path items to Eclipse 3.5 using relative paths?

后端 未结 9 2059
夕颜
夕颜 2020-12-28 15:42

Eclipse 3.5 added support for relative buildpath/classpath items, yet I cannot seem to find a graphical way to add relatively pathed items. The example in new and noteworthy

相关标签:
9条回答
  • 2020-12-28 16:20

    I think you can do this graphically instead of editing .classpath. Depending on Eclipse version it's something like:

    Right-click project --> Properties --> Build Path --> Libraries (tab) --> Add Variable

    Works in my current Eclipse with a Java project.. ;-)

    0 讨论(0)
  • 2020-12-28 16:21

    No. As of yet, it is not possible. But you will be seeing it soon. Keep checking the intergration builds.

    0 讨论(0)
  • 2020-12-28 16:22

    Simple. without all dialogs and menus.

    In your .project file add the path to the real file, like this. Mine is on ../libs/GoogleAdMobAdsSdkAndroid-4.1.1/GoogleAdMobAdsSdk-4.1.1.jar
    so i changed to PARENT-1-PROJECT_LOC/libs/...

    <linkedResources>
        <link>
            <name>libs/GoogleAdMobAdsSdk-4.1.1.jar</name>
            <type>1</type>
            <locationURI>PARENT-1-PROJECT_LOC/libs/GoogleAdMobAdsSdkAndroid-4.1.1/GoogleAdMobAdsSdk-4.1.1.jar</locationURI>
        </link>
    </linkedResources>
    

    and in .classpath i use

    <classpathentry kind="lib" path="libs/GoogleAdMobAdsSdk-4.1.1.jar"/>
    

    as the link to the lib

    Eclipse links the resource to project and uses it without copping the file Just like Mike Jones answer above but without any dialogs

    Best for multiple apps

    0 讨论(0)
提交回复
热议问题