SemmleCode Introductory Tutorial

Article Index
SemmleCode Introductory Tutorial
Loading Code
Writing Queries
Packaged Queries
Viewing Results
Saving Queries

Duration: 30 minutes approx.

This tutorial will demonstrate how to:

Throughout the tutorial, we'll be querying an open-source program called JHotDraw. To follow along, please download a ready-made Eclipse project of JHotDraw. Once downloaded it can be imported into Eclipse:

  1. Unzip the downloaded file. It will unpack to a new folder called JHotDraw.
  2. Start Eclipse.
  3. Select File->New->Project.
  4. Select Java Project and click Next.
  5. Give the project a name, select Create project from existing source, click the Browse button, browse to where you unpacked the zip file, select the JHotDraw directory and click OK.
  6. Click Finish.

You can also run through this tutorial using one of your own projects. Some of the later queries may require tweaking so that they are applicable to your project.