This document provides a tutorial on how to programmatically use Weka's Naive Bayes classifier from Java code. It outlines 4 steps: 1) Expressing the problem with features, 2) Training a classifier using a training set and choosing a Naive Bayes classifier, 3) Testing the classifier using an evaluation module on a testing set, and 4) Using the trained classifier to classify new instances by getting the probability distribution over classes.