

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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')