在Java中导入API(蚀) [英] Importing an API in Java (eclipse)

查看:131
本文介绍了在Java中导入API(蚀)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图导入我在网上找到了一个API - 乔达时间 - 到我的程序

I'm trying to import an API that I found online - joda time - into my program.

我已经下载的文件,在我的源文件夹卡住他们,但很明显,因为它不是融入了我的计划,他们将无法正常工作。

I've downloaded the files, stuck them in my source folder, but obviously since it isn't integrated into my program they won't work.

我花了很多时间谷歌搜索周围不同的方法(可能是我在寻找错误的东西?),以及只是随机做了一堆Eclipse内部不同的东西(我使用Eclipse开发),该包括单词包或进口,但没有成功。

I've spent a lot of time googling around for different methods (maybe I'm searching for the wrong thing?) as well as just randomly doing a bunch of different things inside eclipse (I'm developing with eclipse) that include the word "package" or "import", to no avail.

我不知道这是否是值得一提,但我的计划正与谷歌应用程序引擎构建,以及他们所有的东西是在一个不错的com.xxx.xxxx格式,我认为组织最终是什么,我需要得到我的东西到 - 我只是不知道如何

I don't know if it's worth mentioning but my program is being built with the google app engine, and all their stuff is organized in a nice com.xxx.xxxx format, which I think is ultimately what I need to get my stuff into - I just don't know how.

总之,对不起,如果这是一个可笑的小事的问题,在此先感谢任何人帮助。

Anyway, sorry if this is a ridiculously trivial question, and thanks in advance to anyone that helps.

推荐答案

您应该只是把乔达时间jar文件的WEB-INF / lib目录项目的文件夹内。此文件夹包含所有必须与您的应用程序交付,并自动添加到您的项目通过了Eclipse的构建路径中的库。

You should just have to put the joda-time jar file inside the WEB-INF/lib folder of your project. This folder contains all the libraries that must be delivered with your application, and are automatically added to the build path of your project by Eclipse.

这篇关于在Java中导入API(蚀)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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