java - Using third party libraries with netbeans -
i new java. trying use jsoup in small project. couldn't set netbeans use it.
i have opened folder third party libraries in c:\users\muhammed\jarlibraries
, have put jsoup-1.7.2.jar
in it. right clicked on libraries , selected add jar folder. project looks this;
as can see image above, netbeans cannot resolve jsoup when fix imports. doing wrong here? how process work?
why placed libary package? thats not how that. instead:
- go project properties right clicking on project.
- then click on libraries tab, see compile, run, compile tests, run tests tabs.
- click on compile tab (the first tab, selected default)
- click on add jar/folder button @ right
- then browse , select jar file(not folder) want include. included jar file show on following box of compile tab.
- click on ok button.
- finished.
than added project , classpath.
you imported complete folder project, have single jar file.
Comments
Post a Comment