你是如何“安装”的?日食简单? [英] How do you "install" Simple in eclipse?

查看:134
本文介绍了你是如何“安装”的?日食简单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在日食中使用简单?
我是否将它添加到JDK?

How do I use simple in eclipse? Do I add it to the JDK?

http: //simple.sourceforge.net
该网站似乎有关于使用这些方法的一些信息,但很少有关于设置库的信息。

http://simple.sourceforge.net The web site seem to have allot of info on using the methods but little on setting up the library.

我之前使用C和C ++来设置外部库,但Java设置让我感到困惑。

I have used C and C++ to set up external libraries before but the Java set up confuses me.

谢谢!

推荐答案

在java世界中,为了能够使用第三方库,您需要做的是将它们添加到项目/应用程序的 CLASSPATH 。如果是Simple,它的库文件是 simple-xml-2.4.1.jar ,它位于simple-xml-2.4.1中的文件夹jar中。您将从Sourceforge下载的zip。

In java world, in order to be able to use third party libraries, what you need to do is to add them to your project/application's CLASSPATH. In case of Simple, its library file is simple-xml-2.4.1.jar that is located inside a folder "jar" within the simple-xml-2.4.1.zip that you would download from Sourceforge.


  • 下载并解压缩
    simple-xml-2.4.1存档。 (ZIP文件)。
    请注意,它有一个Jar文件夹,
    包含simple-xml-2.4.1.jar -
    是库eclipse,其他IDES
    用于设置 CLASSPATH

在项目
资源管理器中转到你的项目。

Goto your project in project explorer.

右键单击项目名称,然后按
选择属性。或者,你
可以点击项目名称,
键入Alt + Enter。一个窗口将弹出

Right-click on the project name and select "Properties". Alternately, you can click on the project name and type "Alt+Enter". A window will pop-up.

在窗口中,选择Java Build
Path。你会看到几个标签,
包括Source,Projects和
Libraries。

In the window, select "Java Build Path". You will see several tabs, including "Source", "Projects" and "Libraries".

添加 simple-xml-2.4.1.jar
项目,点击Libraries
标签。从那里,您可以添加
内部罐子或外部罐子。
添加外部Jar将在你的计算机上添加
jar
。因此,选择该按钮,浏览到
,其中 simple-xml-2.4.1.jar 位于
并确保将其添加到您的构建
路径

To add simple-xml-2.4.1.jar to your project, click on the "Libraries" tab. From there, you can add either internal jars or external jars. The "Add External Jar" would be to add a jar that's on your computer somewhere . So choose that button, browse to where simple-xml-2.4.1.jar is located and make sure to add it to your build path

这篇关于你是如何“安装”的?日食简单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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