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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.