如何在Eclipse中包含oauth库? [英] How to include oauth library in Eclipse?

查看:143
本文介绍了如何在Eclipse中包含oauth库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现一些OAuth OA库:Java / 。但是我应该如何在Eclipse中使用这个库呢?我有最后的经典版本的Eclipse。我是一个新手。

I found some OAuth library for Java: http://code.google.com/p/oauth/. But how am I supposed to include this library in Eclipse for usage? I've got last classic version of Eclipse. I'm a newbie.

只需要能够导入所有这些:

Just want to be able to import i.e. all of those:

import net.oauth.client.httpclient4.HttpClient4;
import net.oauth.client.OAuthClient;
import net.oauth.OAuthServiceProvider;
import net.oauth.OAuthConsumer;
import net.oauth.OAuthAccessor;
import net.oauth.OAuth;
import net.oauth.OAuthMessage;
import net.oauth.OAuthException;

如例 http://oauth.googlecode.com/svn/code/java/example/command-line /src/net/oauth/example/cmdline/OAuthHelper.java

推荐答案


    • In a separate project keep all the source files.

      导出项目的 jar

      创建新的JAR文件

      右键单击要包含 jar 创建并单击属性。

      Right click on the project you would like to include the jar created and click properties.

      单击 Java构建路径,然后在

      单击添加外部Jar ,然后选择创建的jar。

      Click Add External Jar and select the jar created.

      这篇关于如何在Eclipse中包含oauth库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆