【问题标题】:JRE 7 Eclipse & sqlite3 on MacMac 上的 JRE 7 Eclipse 和 sqlite3
【发布时间】:2015-01-31 03:21:41
【问题描述】:
我正在尝试为我的 Java 课程期末考试完成一个程序。
我需要将 sqlite3 用于数据库目的。讲师已包含有关如何将 sqlite.jar 文件插入 Eclipse 的程序文件夹的说明。在 Windows 上使用这个扩展:将 sqlite-jdbc-3.7.2.jar 复制到这个位置 C:\Program Files\Java\jre7\lib\ext
我找不到有关如何在 Mac 上执行此操作的任何结果。
我正在运行 OSX 10.10
感谢您的任何回答。
-布兰登
【问题讨论】:
标签:
java
eclipse
windows
macos
sqlite
【解决方案1】:
这里有一些有用的信息:https://developer.apple.com/librarY/mac/qa/qa1170/_index.html
The /Library/Java/Extensions directory can be used for additional jar files or JNI libraries that need to be placed on the system classpath
和
~/Library/Java/Extensions directory can be used for user-level installation of support libraries
【解决方案2】:
不要将它处理到 ext/,试试这个:
在eclipse中右击你的项目,然后
属性>Java 构建路径> 库> 单击添加外部 JAR