0

I'm trying to use Jsoup in a Java project. For this I have included the Jar File in Referenced Libraries. However, I keep getting 'The type org.jsoup.Jsoup is not accessible' error

enter image description here

The type org.jsoup.Jsoup is not accessible

Captai-N
  • 1,124
  • 3
  • 15
  • 26

1 Answers1

1

You want to add a 3rd party lib to a Maven project, if I understand correctly, which is already answered here: Add a dependency in Maven

However, in your case, there is no need to install the jar in your local Maven repository as Jsoup is already available on Maven: https://mvnrepository.com/artifact/org.jsoup/jsoup/1.15.3

Don't forget to add requires org.jsoup; to your module-info.java.

Silviu Burcea
  • 5,103
  • 1
  • 29
  • 43