How to add the jar file into the build path

后端 未结 3 405
星月不相逢
星月不相逢 2020-12-19 19:47

currently i am working on the nd file upload and download from ftp server to android. now i am having the jar file which i need to use in my application.can to please sugge

相关标签:
3条回答
  • 2020-12-19 20:01

    Try this:

    Right click on project-> properties-> Java Build Path-> Libraries-> Add External Jars-> select the jar file where it is in your Pc-> click ok.

    0 讨论(0)
  • 2020-12-19 20:11

    In your .classpath file which should look something like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
      <classpathentry kind="src" path="src"/>
      <classpathentry kind="src" path="gen"/>
      <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />        
      <classpathentry kind="output" path="bin"/>
    </classpath>
    

    add a line

    <classpathentry kind="lib" path="<path to your .jar file>"/>  
    
    0 讨论(0)
  • 2020-12-19 20:19

    As long as the entry

    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />
    

    is in your .classpath then you can change the android.jar in the build path simply by selecting which Android API level you want in project-> properties-> Android (the build path updates automatically)

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