You should find out what package those classes are in. If this is not written somewhere else then open the jar file with winrar/winzip. (Or extract it with jar command line tool comes with JDK)
Check which directory is your class in. That will directly be the package name!
For example if the classes you want to use is in org/mypackage/anotherone, then you whould import those classes from your java file like this:
import org.mypackage.anotherone.*;
This will import the classes in org.mypackage.anotherone package.
Where do I place this file
You need to add this JAR to your classpath.
If you are using an IDE and already have a project, you can add this jar to the project's classpath. This is generally available in your project's properties (In NetBeans, right click on your project, select Properties and add the JAR to your classpath).
If you don't use an IDE, you have two choices left. One of them is to add command line parameters to your java and javac commands. Write "javac -help". You will see a CLASSPATH option there. So you need to specify the path of your JAR file as the classpath. I recommend you to place the jar to the same place of your java class and use "java -cp . yourClass.java" simply.
And alternatively, although it is not recommended, you can place this jar to your jre's lib/ext directory. Since that place is automatically added to your classpath variable, your JAR will be find if you place it there.
Check this resource for more detailed information:
Classpath (Java - Wikipedia, the free encyclopedia)