关于使用 .class 文件的 jar 文件的命令

Commands regarding usage of .class files of a jar file

我有 jsoup.I 的 .jar 文件参考 this link 以消除我的疑虑。 但是给出该命令后没有working.Even的解决方案,我收到以下错误。

error.Can有人帮我解决这个问题。

G:\javap>javac -cp .;jsoup.jar Jsou.java
Jsou.java:9: error: cannot find symbol
 Document doc=Jsoup.connect("www.javatpoint.com").get();
 ^
  symbol:   class Document
  location: class Jsou
Jsou.java:9: error: cannot access Jsoup
 Document doc=Jsoup.connect("www.javatpoint.com").get();
              ^
  bad class file: .\Jsoup.class
    class file contains wrong class: org.jsoup.Jsoup
    Please remove or make sure it appears in the correct subdirectory of the cla
sspath.
2 errors

OP 找到的解决方案:

@Jonny Henly,Thanks for the help but i got it . I wasn't importing "import org.jsoup.Jsoup" ,that's why the problem was coming.Now it's fine.