如何把一个罐子中的类路径在Eclipse?罐子、路径、Eclipse

2023-09-12 00:53:45 作者:蛊'

我的n00b在类路径和Ant。在阅读GCM的教程为Android,我碰到一个行

Hi I am n00b in classpath and Ant. While reading the tutorial of GCM for Android I came across a line

第1步:在gcm.jar文件复制到你的应用的classpath

要编写Android应用程序,请先将gcm.jar文件从   SDK的GCM客户端/ dist目录到应用程序的类路径。

To write your Android application, first copy the gcm.jar file from the SDK's gcm-client/dist directory to your application classpath.

我从 DIST 文件夹中的gcm.jar。现在,我怎么把它变成使用Eclipse(我认为这会更容易些)我的类路径?而且我会在哪里做出改变,如果我没有的Eclipse?

I got the gcm.jar from the dist folder. Now how do I put it into my classpath using Eclipse(I think that would be easier)? And where would I make changes if I didnt have Eclipse?

Thnaks

推荐答案

由于Android开发工具的REV 17的,正确的方法来添加库JAR when.using的工具和Eclipse是创建一个名为在同一级别的的src 资产目录,然后砸罐子在那里。没有else.required,该工具会自动照顾所有的休息你。

As of rev 17 of the Android Developer Tools, the correct way to add a library jar when.using the tools and Eclipse is to create a directory called libs on the same level as your src and assets directories and then drop the jar in there. Nothing else.required, the tools take care of all the rest for you automatically.