

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The steps to set up and use the simpledb database system in java using eclipse ide. It covers downloading and installing the required software, setting up the project, and running the server and client applications. Students are expected to complete specific tasks and submit the results.
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CPSC 310 Lab 1, Summer 2008, RonnieWard Assigned 5/28/08. DUE in class on 6/9/
The goal of this first project (or lab) is to get you into Java under Eclipse working with the SimpleDB by Ed Sciore. This will start your understanding of how a relational database system might be implemented. Answer specific questions in this document and submit your results via CSNET in a single ZIP file. COMMENT the code you write! Also, turn
Installed JRE and you should see it installed. If not, click the Add button and add 1. (browse and find the installation folder). Also, make sure ECLIPSE is set to auto compile. Under ECLIPSE click Project and check mark Build Automatically. You can leave the 1.5 JRE (or earlier version) installed and later switch back to it if needed.
To run the rmi server, right mouse click the project name SimpleDB_2.6 and select Run As -> Open Run Dialogue -> Java Application and fill in the Name field as rmiregistry. Under “Main Class” check mark the item “include system libraries when searching for a main class” and click the Search button. From the list, select RegistryImpl and run it. A console window will appear with no output. Next, start the simpledb server. Open another Run Dialogue as you did for the rmiregistry and fill in the Name field as Startup SimpleDB. In the “Main Class” field enter simpledb.server.Startup. Select the “Arguments” tab and enter the database name “studentdb” as a Program Arguments. Then select Apply and then Run. A console window will open and you’ll see output with a last line saying “database server ready”. Turn in the output created by running this Startup application.
To test using the SimpleDB server, open the file CreateStudentDB in the studentClient.simpledb package and select “Run As” a java application. Turn in the output created by running this application. Be careful here. I want you to show the output on the server console and the output on the client console!
CPSC 310 Lab 1, Summer 2008, RonnieWard Assigned 5/28/08. DUE in class on 6/9/
firsttable (id int, name varchar(25)) frows: (10, 'ten'), (20,'twenty'), (30,'thirty')