I'm new to Java and so I'm not sure how to include jars in my build path for complilation. I'm on OSX and using Bash and javac to compile.
Also can anyone recommend some speech synthesis libraries besides freeTTS?
Jars: this means java archive.
You can get a jar file set up automatically from your project if you use an IDE. Otherwise you can set up jars from the command prompt or shell windows. As for most things, there is a section in the Java tutorial about it. And here in the developers' website. Make sure you get the spelling in the manifest files absolutely right, and terminate the last line with a return or newline.
As for importing jars: It is easier in an IDE. In Eclipse, you right-click the name of the project->properties->build path->libraries->add external JARs.
There is a way you can include an extra classpath, but I can't remember how to do it. Try this javac documentation.
Sorry I can't be more helpful; anybody else remember the syntax for importing a jar?
I think that means you can write
C:> set CLASSPATH=classpath1;classpath2...
A command-line tool, such as java, javac, javadoc, or apt. For a listing, see JDK Tools.
Class paths to the .jar, .zip or .class files. Each classpath should end with a filename or directory depending on what you are setting the class path to:
* For a .jar or .zip file that contains .class files, the class path ends with the name of the .zip or .jar file.
* For .class files in an unnamed package, the class path ends with the directory that contains the .class files.
* For .class files in a named package, the class path ends with the directory that contains the "root" package (the first package in the full package name).
The examples are given in Windows format; I am sure you can change it to OSX format.