I and trying to read some text from a PDF file with PDFbox, i have set the classpath to the jar and everything complies with out errors. (I am doing this from cmd on windows 7) then I run "java test" and I get the following error `Error: could not find or load main class`. I have even tried different example version of code for PDFbox same problem... Here is my code

```
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import org.apache.pdfbox.cos.COSDocument;
import org.apache.pdfbox.pdfparser.PDFParser;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.util.PDFTextStripper;
class test {
    public static void main(String args[]) {
        PDFParser parser = null;
        PDDocument pdDoc = null;
        COSDocument cosDoc = null;
        PDFTextStripper pdfStripper;

        String parsedText;
        String fileName = "test.pdf";
        File file = new File(fileName);
         try {
              parser = new PDFParser(new FileInputStream(file));
              parser.parse();
              cosDoc = parser.getDocument();
              pdfStripper = new PDFTextStripper();
              pdDoc = new PDDocument(cosDoc);
              parsedText = pdfStripper.getText(pdDoc);
              System.out.println(parsedText.replaceAll("[^A-Za-z0-9. ]+", ""));
         } catch (Exception e) {
              e.printStackTrace();
              try {
                    if (cosDoc != null)
                         cosDoc.close();
                    if (pdDoc != null)
                         pdDoc.close();
              } catch (Exception e1) {
                    e.printStackTrace();
              }

         }
    }
}

```

I know this going to be something so simple that I will slap myself for not seeing it but I have now been looking at this for to long and can't see the wood for the trees. What am I over looking?

Edit: I have tried `public class test {` same problem.

Edit2: Solved knew it be a face slapping moment... i set the class-path wrong `set CLASSPATH=.;C:\project\pdfbox.jar`