import jgrapht package into my netbeans project
I am not knowing how to use the classes written in netbeans for one of my project . in which folder should i place the 开发者_JS百科jgrapht package . will i have to write the import statement if yes then what do i write ?
say you've created a project named 'myproject'. now you want to use jgrapht package in that project. just do the following: under 'myproject' there are four sub-directories,
- Source Packages
- Test Packages
- Libraries
- Test Libraries
'right click' on 'Libraries' directory. Now, a menu appears that offers
- Add Project
- Add Library
- Add jar/folder
- Properties
select Add jar/folder. Now just locate where is your "jgrapht-jdk1.6.jar" file.
hope it helps
精彩评论