reset password

Use Eclipse for SimpleDB Development

This guide will walk you through the steps to set up SimpleDB as a project under Eclipse so later you can add, modify, and test SimpleDB code as required in the homework assignments.

Please download the repackaged SimpleDB source code. The original SimpleDB package is available from the author's website, but I strongly recommend that you use the repackaged version because I made several changes to make it easier to compile and easier to run. In particular:

  • Removed all .class files.
  • Moved /simpledb to /src/simpledb
  • Removed the client code for Derby.
  • Moved the SimpleDB client code to the simpledb.client package.
  • Modified the following classes so the code can be compiled with JDK 1.7
    • simpledb.remote.ConnectionAdapter
    • simpledb.remote.DriverAdapter
    • simpledb.remote.ResultSetAdapter
    • simpledb.remote.StatementAdapter
  • Modified the class simpledb.server.Startup so it starts its own RMI registry instead of relying on an external one.
  • Added two Eclipse files .project and .classpath so the code can be imported directly into Eclipse.

After you download the repackaged SimpleDB source code, in Eclipse, select File -> Import ... -> Existing Projects into Workspace. Choose Select archive file, select the zip file you downloaded, then click Finish. Now simpledb should appear in Eclipse as a Java Project, which you can compile and run just like any other Java project.
 

This page has been viewed 8035 times.