安装JAR文件 [英] Installing a JAR file
问题描述
我刚从 http://jsoup.org/download 下载了Jsoup(jsoup-1.7.2) 。罐)。问题很简单:我该如何安装它?我已经尝试在安装最新的JRE版本后右键单击>打开> C:\Program Files\Java \ jre7 \ bin\javaw.exe但它不起作用。 jar文件在我的桌面上,我目前使用WIN7。一些分步指示将不胜感激!
I've just downloaded Jsoup from http://jsoup.org/download (jsoup-1.7.2.jar). The question is simple: how do I install it? I've already tried with right click > open with > C:\Program Files\Java\jre7\bin\javaw.exe after installing the latest JRE version but it doesn't work. The jar file is on my desktop and I currently use WIN7. Some step-by-step "instruction" would be appreciated!
推荐答案
只需将此jar包含到项目中
Just include this jar into your project
对于Eclipse:
1.右键单击您的项目
2.属性
3. Java构建路径
4.添加外部jar
5.找到你的JAR
6.好的,好的,好的
For Eclipse:
1. Right click on your project
2. properties
3. Java Build Path
4. Add external jars
5. Find your JAR
6. OK, OK, OK
对于IntelliJ IDEA:
1.文件
2.项目结构
3.图书馆
4.中心冒号顶部的+
5 .Java:
6.好的,好的,好的
For IntelliJ IDEA:
1. File
2. Project structure
3. Libraries
4. "+" at the top of center colon
5. Java
6. OK, OK, OK
并阅读这个库的文档。
这篇关于安装JAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!