Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 jar jsqlparser-0.7.0 添加到了我的 Netbeans IDE(在库上右键单击/添加 Jar 文件),但我仍然无法使用它的包。可能是什么原因 。该库是在 2011 年创建的,它可能不被 JDK7 支持?
JAR 文件“jsqlparser-0.7.0.jar”不是常规的 Java 库。它是一个简单的压缩文件,包含几个工件:一个源代码和一个文档目录、一些测试文件,以及 - 您需要的 - 在 lib 目录中名为“jsqlparser.jar”的另一个 JAR。
这个 JAR 是您必须添加到项目中的“真正的库”。此外,这个库中的所有包都以“net.sf.jsqlparser”开头。
放这个:
import jsqlparser.*;