DT249-Information Systems Research Practice Programming Revision Lecture 3 Lecturer: Patrick Browne
Two Eclipse Database Projects Assume Eclipse Standard version (Mars)
Run SQLite Make folder called C:\ISPR Download the Eclipse Project from ISRP page: Unzip to C:\ISPR Change directory or folder to C:\ISPR\SQLite Run sqlite3.exe from command prompt or click from Windows Explorer. Type the following at SQLite prompt: sqlite3.exe movies.db select * from actors;.exit
Eclipse SQLite Import the Project. Use your default workspace. A workspace is a collection of projects held in a directory.
Eclipse SQLite Set the classpath to point to the JDBC driver. Use Properties External jars: C:\ISPR\SQLite In Eclipse Project Pane navigate to Simple.java Run as Java Application
Eclipse SQLite In Eclipse Package Manager navigate to Simple1.java Run as Java Application
SQLite sources Get SQLite For Windows use Precompiled Binaries for Windows Get JDBC drivers at I used sqlite-jdbc SNAPSHOT.jar For this project SQLite and JDBC were stored in sqlite-jdbc SNAPSHOT.jar in C:\ISPR\SQLite
JUnit for Eclipse Download : Unzip into C:\eclipse\plugins ( or wherever you installed Eclipse ) In Eclipse, select a project then go to the Project menu > Properties > Java Build Path > Libraries tab > Add External Jars > Select the junit-4.1X.jar >