开发者

Adding jars to classpath, Eclipse, Android

开发者 https://www.devze.com 2023-04-04 22:28 出处:网络
Currently, I go to properties-> build path-> libraries -> and then add external jars to my classpath, I know this is the cor开发者_Go百科rect way to do this, for java at least. However, the issue is I

Currently, I go to properties-> build path-> libraries -> and then add external jars to my classpath, I know this is the cor开发者_Go百科rect way to do this, for java at least. However, the issue is I am running it on the Android SDK 2.1. When I run the program, I do not think the android emulator can "find" the .jars in the classpath. Is this possible? If so, which folder do I put the jars before adding them to my classpath?


You can try doing it in eclipse by

Right Click the jar --> Build Path --> Add to build path


1) Go to your Finder / Explorer and select your .jar files 2) Drag your .jar files into Eclipse, (make sure to put them in your desired Project) 3) right click on each jar -> "build path" -> "add to build path"


What is the output of the LogCat?

if you are using native code in your projects you must include the so files in libs->armeabi folder. stuff like box2d, chipmunk, xml2, etc...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号