1.tools-->configure Libraries-->new-->在Name域中写包名-->在Location域选择包的路径-->OK
2.在当前工程下-->Project-->ProjectProperties-->Required Libraries-->Add-->New-->....-->OK然后就可以在工程中引用javax.sql包了。