I'm relatively new to Java but I have been playing around with other languages for on and off for years. Right now I'm trying to write a program that requires a mathematical expression be read and evaluated and I hope to accomplish the parsing with JavaCC.

I'm having a lot of difficulty trying to add the JavaCC files to a "build" when i compile in terminal (mac). It seems when I try to compile it doesn't recognize the parts of the program associated with JavaCC, which I'm not surprised because I haven't specified where the JavaCC bin is located. I don't know how to add these core JavaCC files to the infrastructure (if you will) of my programs... forgive me I'm not very familiar with the correct terms.

I realize this is a specific question but there must be someone out there who knows.