Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing a JAR file

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!

like image 692
Marco Avatar asked Oct 28 '13 10:10

Marco


People also ask

Do you need Java installed to run a JAR file?

To open a jar file in Windows, you must have the Java Runtime Environment installed. Alternatively, you can use decompression software, such as an unzip utility, to view the files in the jar archive.


1 Answers

Just include this jar into your project

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

For IntelliJ IDEA:
1. File
2. Project structure
3. Libraries
4. "+" at the top of center colon
5. Java
6. OK, OK, OK

And read docs for this library.

like image 149
Alexmelyon Avatar answered Sep 23 '22 19:09

Alexmelyon