Presentation is loading. Please wait.

Presentation is loading. Please wait.

DT249-Information Systems Research Practice-2014-15 Programming Revision Lecture 3 Lecturer: Patrick Browne.

Similar presentations


Presentation on theme: "DT249-Information Systems Research Practice-2014-15 Programming Revision Lecture 3 Lecturer: Patrick Browne."— Presentation transcript:

1 DT249-Information Systems Research Practice-2014-15 Programming Revision Lecture 3 Lecturer: Patrick Browne

2 Two Eclipse Database Projects Assume Eclipse Standard version (Mars) https://eclipse.org/downloads/packages/release/Mars/M1 https://eclipse.org/downloads/packages/release/Mars/M1

3 Run SQLite Make folder called C:\ISPR Download the Eclipse Project from ISRP page: http://www.comp.dit.ie/pbrowne/Information%20Systems%20Research%20Practice/SQLite.7z http://www.comp.dit.ie/pbrowne/Information%20Systems%20Research%20Practice/SQLite.7z 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

4 Eclipse SQLite Import the Project. Use your default workspace. A workspace is a collection of projects held in a directory.

5 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

6 Eclipse SQLite In Eclipse Package Manager navigate to Simple1.java Run as Java Application

7 SQLite sources Get SQLite http://www.sqlite.org/download.html http://www.sqlite.org/download.html For Windows use Precompiled Binaries for Windows Get JDBC drivers at https://bitbucket.org/xerial/sqlite-jdbc/downloads https://bitbucket.org/xerial/sqlite-jdbc/downloads I used sqlite-jdbc4-3.8.2-SNAPSHOT.jar For this project SQLite and JDBC were stored in sqlite-jdbc4-3.8.2-SNAPSHOT.jar in C:\ISPR\SQLite

8 JUnit for Eclipse Download : http://www.junit.org/http://www.junit.org/ 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 >


Download ppt "DT249-Information Systems Research Practice-2014-15 Programming Revision Lecture 3 Lecturer: Patrick Browne."

Similar presentations


Ads by Google