How to set the class path in Eclipse and Android Studio

后端 未结 2 1940
长情又很酷
长情又很酷 2021-01-12 14:07

I\'ve heard that you can use classpath to use classes in other libraries. I googled about this and all results tell me to use the command line to compile the pr

2条回答
  •  无人及你
    2021-01-12 14:15

    In eclipse, Right Click on Project -> Properties -> Java Build Path -> Add Class Folder or Simply copy your jar file to the libs folder in your project. Right click on jar file, Select "Build Path" then click "Add to build path".

    In Android Studio, Simply copy your jar file to the libs folder in your project. Right Click on Project -> Module Settings Select your project from the left and click on "+" sign at the bottom and select "jars or directories". Go to your project's libs folder and select the jar file which you have copied in that folder in step 1 and press OK Just make sure to check the box and then press "Apply" or "Ok" button to finish the process.

提交回复
热议问题