<- back

Working on Nachos with Eclipse

Eclipse is a very powerful IDE and has a lot of features which help develop Java applications. The version I am using is Helios.

Setting up Project

  1. Download and install Java
  2. Download and install Eclipse
  3. Start Eclipse
  4. File > New > Java Project
  5. Give it a project name (e.g. "nachos"), under "Project Layout", choose "Use project folder as root for sources and class files"
  6. Extract nachos into its own folder (nachos/ with subfolders nachoes/ag, nachos/machine, .. etc)
  7. Copy or move this folder into the new folder you created for your Eclipse workspace.
  8. Select the "nachos" project from the "Package Explorer" on the left panel of Eclipse and press "F5" to refresh and see the Nachos files.

Compiling and Running

  1. Eclipse will automatically continuously compile your code
  2. You will have to copy a required "nachos.conf" file into the root project folder.
  3. The class you want to run is "nachos.machine.Machine", to run this, find it in the "Package Explorer", right click on it and "Run As > Java Application".

Tips